Re: x86 compile options?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Aldrich wrote:

> 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

-m64 is enough.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux