
Hi,
totopo
Yes those flags seem fine on my pentium 4 3.2GHz HT
But I switch between -Os and -O3 depending on what I compile. I compiled my system (emerge system) with -O3 settings to get the fastest code, accepting an increase in memory usage.
Then I switched to -Os when compiling the various kde packages and openoffice, here I want the executable to be as small as possible and I still get most of the -O2 optimizations, but not the ones that would increase my memory usage at runtime. I do this because kde apps. and openoffice are usualy just waiting for me to type something in a edit box or waiting for me to push a button (of course if I have long and complex fourmulas to calculate in the spreadsheet of openoffice this may change). My main concern here is startup time, I have also prelinked my whole system.
I am uncertain though if "-fomit-frame-pointer" is nessecary as it is implied by the -O flags anyway, but this may be a way to force it on even if the compiler disagrees when only using a -O flag.
The roots of education are bitter but it's fruit is sweet.