Correct Compiler Flags for my Computer

Kurt Wall kwall
Mon May 17 11:47:48 PDT 2004


An unnamed Administration source, James McDonald, wrote:
% People,
% 
% I have a Pentium III 600 with 512MB RAM running mdk9.1.
% 
% I have been compiling and installing stuff using the compiler flags in 
% douglas's mozilla from source sxs namely |'-O3 -march=i686 -mcpu=i686' ?

In most cases, "-O2" is preferable and will certainly speed up the 
compilation. Using "-march=i686" implies "-mcpu=i686", so you don't 
have to use "-mcpu=i686" if you specify "-march=i686". Depending on your 
compiler version, you can use "-march=pentium3" instead of "-march=i686".
Other optimization options you can use for the Pentium III include 
"-mfpmath=sse", "-msse", "-msse2", and "-mmmx".

Kurt
-- 
Those who in quarrels interpose, must often wipe a bloody nose.


More information about the Linux-users mailing list