* On May 23 17:45, Walter Dnes (gentoo-user@lists.gentoo.org) wrote: > Currently, I use "-march=i686" for my 3 machines, a P4, a PIII, and a > PII (and a partridge in a pear treeeeeeee<g>). > > "i586 is equivalent to pentium and i686 is equivalent to pentiumpro." > > Does this mean that I would get better optimization if I use "pentium2", > "pentium3" or "pentium4", as appropriate? I am using the available flags > (-mmmx, -msse, -msse2, -mfpmath=sse, etc) as appropriate.
Yes - proper march settings will give you nice benefits. Just use -march=pentium{2,3,4} as appropriate. You don't need the other options, they're implied by march where appropriate. And for goodness sake, don't use the ridiculous CFLAGS suggested by some others. You'll have so many problems down the road you won't know what to do with your system. Good ole "-O2 -march=whatever -fomit-frame-pointer" produces fast, stable code. (Skip the frame-pointer section if you want debuggable code.) Ricing not necessary; neither is pulling your hair out because of random segfaults from badly optimized code. Not to mention that no devs (and few users) will help with anything if you use more CFLAGS. Tom
pgpRLspkSL1eH.pgp
Description: PGP signature