Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

marjb

macrumors newbie
Original poster
Oct 28, 2009
3
0
I'm currently using the GNU compiler that is included with XCode 3.1.4. Note that 3.1.4 is the latest version of XCode that runs on Mac OS X 10.5.

Unfortunately, XCode 3.1.4 only includes gcc 4.2.1, which was released in July 2007 and which does not do everything I need. Therefore I would like to install a more recent version of gcc, ideally 4.4.2 (or at least 4.4.1).

However I doubt if I will be able to compile this myself. So I was wondering if it is possible to download a pre-made gcc 4.4 package for Mac OS X 10.5 somewhere?
 

marjb

macrumors newbie
Original poster
Oct 28, 2009
3
0
What is it that you need in GCC 4.4.x that is not available in 4.2.1?

Some inline assembly commands don't seem to work properly. E.g. if I write

__asm__ not ax, ax

when I compile it says

main.cpp:16: error: expected unqualified-id before '!' token
 

marjb

macrumors newbie
Original poster
Oct 28, 2009
3
0
Some inline assembly commands don't seem to work properly. E.g. if I write

__asm__ not ax, ax

when I compile it says

main.cpp:16: error: expected unqualified-id before '!' token

Found the solution myself. GCC uses AT&T syntax for inline-assembly commands, not Intel syntax.
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
Some inline assembly commands don't seem to work properly. E.g. if I write

__asm__ not ax, ax

when I compile it says

main.cpp:16: error: expected unqualified-id before '!' token

Hope you know what you're doing.

Are you sure you want to use inline assembler code that plays around with 16 bit registers?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.