Skip to content
Prev 4228 / 15075 Next

Compiling assembly instruction on GNU gcc/g++ 4.2.1 (Apple Inc. build 5531)

On 16/01/2008, at 8:49 PM, Patrick Aboyoun wrote:

            
I don't know, but I would suspect that your problem is in using '-arch  
x86_64' and '-march=nocona'.

As I understand the first means "build this for the full range of  
present and future Apple 64 bit Intel hardware and, if specified, lipo  
it up into a fat binary'  While the second means 'optimise this for  
nocona architecture.'

I would have thought you could combine -march nocona with -m64, but  
combining it with -arch x86_64 might just confuse the compiler.

Bill