Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!news.sprintlink.net!news-stk-11.sprintlink.net!news1.sunbelt.net!mel.hargray.com!pull-feed.internetmci.com!newsfeed.internetmci.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!psinntp!psinntp!interramp.com!usenet From: dcmyers@access.digex.net Newsgroups: comp.unix.bsd.freebsd.misc Subject: gcc optimizations for kernel Date: 14 Sep 1996 01:06:24 GMT Organization: PSINet Lines: 15 Sender: myers@freebsd.interramp.com (David C. Myers) Message-ID: <51d0eg$9uf@usenet4.interramp.com> NNTP-Posting-Host: 38.12.171.120 X-Newsreader: knews 0.9.6 Following up on a comment made in the "Benchmarking different UNIX systems" thread, I'd like to know what the best gcc optimizations are for a FreeBSD kernel running on a Pentium. For example, I noticed that the default Makefile uses plain ol' -O, as opposed to -O2 or -O3. Is it safe to turn on the higher optimization levels? And what sort of performance increase has been measured? I'd happily trade a few tens of kilobytes of kernel size for better performance... Any suggestions welcome. Thanks. -David.