How do I find out what an executable has been optimized for?

John Gay johngay@eircom.net
Wed Aug 7 14:28:00 GMT 2002


I've been playing with Linux From Scratch and having a great time pretending 
I know what I'm doing. Since I'm building on a 200Mhz PentiumMMX I want to be 
sure that I'm getting as much optimization as I can.

I've set CFLAGS and CXXFLAGS to -O3 -march=i586 -mcpu=i586 but file still 
tells me that the exectuable are i386 and strings does not find anything 
relating to the optimizations in any of the files. I found out that GCC 
itself does not like these settings but although the lfs doc's say not to sue 
optimizations with GlibC I've had no problems with it so far.

For the moment I am working with the cvs versions of XFree86 and the DRI 
stuff as there is new developments in the glint and gamma drivers for my GVX1 
card. Right now I'm just using xfce for a wondow/desktop manager but I am 
planning to try KDE3. So you can see why I am looking to get as much 
optimization as I can get. I've also looked into using objprelink with the QT 
and KDE3 stuff, but the page says that GCC2.95.3 no longer needs it.

Thank you for any help in this are. I just want to be sure that I am getting 
as much performance out of this box as I can get.

Cheers,

	John Gay



More information about the Gcc-help mailing list