2007/11/27, Brian Dessent <brian@xxxxxxxxxxx> wrote: > "J.C. Pizarro" wrote: > > > * to use -O3 -fomit-frame-pointer -funroll-loops -finline-functions -fpeel-loops > > This is exactly the opposite of what you should do if you're trying to > reduce compile time. -O3 includes marginal optimizations that increase > compile time and usually do not have substantial benefit. -O2 is meant > as a balance between decent optimization and compile speed. If you want > faster compile speed then you use -O1 or -O0, or (sadly) use an older > version of gcc. You certainly don't tell the compiler to try wild and > crazy stuff, just like you don't use gzip -9 if compression speed > matters. 1) For decent released compiler GCC: -O3 ... etc 2) For re-compiles of the GCC snapshots using 1) GCC: ../configure --disable-bootstrap ... and -O0 Is it good idea? Another thing, if there is not time to pass shared libs to static libs then to use the prelinking's howto from Mandriva (old Mandrake). J.C.Pizarro