hmmm......
So far I've come up with manually editing Rules.mk after I do a ./configure and adding
CFLAGS = -march=athlon-xp -O3 -pipe -fomit-frame-pointer
Does anyone know of any other Athlon specific CFLAGS ?
Doing this every time I want to compile something is a pain. Anyone know how to make these CFLAGS the default when I run make ? I guess I could turn it into an environmental variable but I'd really perfer not to do it that way.
Ok seems most people don't seem to use Rules.mk so you have to edit the Makefile directly. Also, for c++ change CXXFLAGS rather than CFLAGS.
From reading the gcc man it appears to me that -fomit-frame-pointer is enabled automatically by using -O3 ( on systems where it won't break debugging). Wonder why so many people include it when setting -O3 ? (maybe it "forces" it or something)
[RANT]
Redhat is really starting to annoy me. Aside from it being one of the most scewy distro's configuration wise, they seem to be releasing their own patched versions of basic utils like gcc etc. that only work with Redhat. Really starting to remind me of a mini Microsoft in a way. ( thank god I never got Lindows !) Now no more support for RH Personal . We get kicked to Feodra. Who knows what this will mean in the end but I can't help getting the feeling of " Thanks for all your help in making us successful but we really need to focus on big corporate clients that we can overcharge for long-term support contracts so kindly piss off" Well Que sera, sera and caveat emptor for that matter
Now where was I...... ummm...ok.......... Got it
For Rh, at least, it seems like the only RPMS commonly available are for i386 or i686 to a lesser extent . Now who the fuck actually still uses a 386 for their desktop machine ? Wouldn't it make a bit more sense to default to i686 and let the few people with ancient hardware compile from source and optimize for their architecture ? I didn't spend all this money on a new computer to let my shiny new cpu go under utilized. Ergo my quest for the ultimate gcc optimization flags. Now I basically have to recompile my whole OS. Think I'll switch to Gentoo where you're expected to compile and optimize everything. Got that nifty emerge feature.... edit make.conf to put in your pet flags.... run........ a day later you've got an OS dialed for your system.
[RANT]
P.S.
God I'm starting to LOVE vim !!!