PDA

View Full Version : need gcc 4.4 on Mac OS X 10.5 Leopard




marjb
Oct 28, 2009, 03:09 AM
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?



Cromulent
Oct 28, 2009, 04:46 AM
What is it that you need in GCC 4.4.x that is not available in 4.2.1?

marjb
Oct 28, 2009, 08:20 AM
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
Oct 28, 2009, 10:49 AM
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
Oct 28, 2009, 02:24 PM
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?