x86 compile options?

David Aldrich David.Aldrich@EU.NEC.COM
Thu Oct 22 18:18:00 GMT 2009


Hi

I want to use the GCC 4.1.2 compiler to compile .cpp files for a single executable to run on both 64-bit x86 (Intel Core 2) and Athlon64 machines. I am having difficulty identifying the correct options from the documentation.

Would the following options be suitable?

CXXFLAGS+=-m64 
CXXFLAGS+=-march=x86-64
CXXFLAGS+=-mtune=generic

Best regards 

David 



More information about the Gcc-help mailing list