[Nottingham] Compiler optimisation flags (gcc, g++)

Alex Walker alex at x3ja.co.uk
Mon Nov 3 16:52:26 GMT 2003


On Mon, Nov 03, 2003 at 04:37:09PM +0000, Roger Light wrote:
> Hi Martin,

> >Any pitfalls with using the following compiler optimisations for an 
> >Athlon Palomino cpu system?
> >
> >
> >echo $CFLAGS
> >-march=athlon-xp -O3 -fexpensive-optimizations -funroll-loops 
> >-fomit-frame-pointer -fschedule-insns2 -minline-all-stringops 
> >-mfancy-math-387 -mfp-ret-in-387 -m3dnow -msse -mfpmath=sse -mmmx 
> >-malign-double -falign-functions=4 -preferred-stack-boundary=4 
> >-fforce-addr -pipe
> >
> >and CXXFLAGS=CFLAGS

> I can't offer any personal experience, but I bet a reasonable place to
> look would be the gentoo forums/lists/irc channels. There is bound to
> be people who have optimised to the point of breakage.

Don't think these have been updated in a while, but I use the
Pentium III optimisations from here:
http://www.freehackers.org/gentoo/gccflags/flag_gcc3opt.html

HTH,

Alex.

-- 
[ If you drink, don't park.  Accidents make people.                        ]



More information about the Nottingham mailing list