I spent the past day rebuilding another Crux system on my Thinkpad, this time with more CFLAGS that were more … aggressive? Ordinarily, I stick with the “safe” ones listed on the Gentoo wiki, which are:
export CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
export CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
/etc/pkgmk.conf file. This time I went with
export CFLAGS="-Os -march=pentium3 -pipe -ffast-math -fomit-frame-pointer"
export CXXFLAGS="-Os -march=pentium3 -pipe -ffast-math -fomit-frame-pointer"
The net result was to cut almost a second and a half off my boot time, from just under 17 seconds to exactly 15.5. Not bad for a 550Mhz Celeron with only 192Mb of PC100. The working environment is very snappy too — software seems to start a little quicker, and some of the “laggy” sensation that sometimes accompanies programs seems to have lessened.
Overall, I’m satisfied with the results, even if most discussions as well as the documentation for gcc suggest those settings are less than kosher. Everything installed without incident, and nothing is freezing or crashing. I did notice that some of the packages compiled with settings that seemed to override the ones I had set in
pkgmk.conf, so it’s possible the software designers know which flags are better than me.
And I’m happy to defer to their expertise on that point. 😀
In the mean time though, I’m going to keep tweaking and see what else I can come up with.