Date: Mon, 24 Jul 2000 10:07:06 -0700 (PDT) From: John Baldwin <jhb@pike.osd.bsdi.com> To: mi@aldan.algebra.com Cc: stable@freebsd.org Subject: Re: Recommended compilation optimizations Message-ID: <200007241707.KAA49181@pike.osd.bsdi.com> In-Reply-To: <200007241403.KAA26602@misha.privatelabs.com> from "mi@aldan.algebra.com" at "Jul 24, 2000 10:03:40 am"
next in thread | previous in thread | raw e-mail | index | archive | help
mi@aldan.algebra.com wrote: > On 24 Jul, Dave Boers wrote: > = On Mon, Jul 24, 2000 at 11:36:30AM +0200, Dan Larsson wrote: > = > When doing a buildworld or buildkernel, what are the optimal > = > compilation flags I can set for a system running Pentium Pro? > = > = -O -pipe > = > = AFAIK that's the only optimization that is more or less guaranteed to > = work. > > I've seen '-fexpensive-optimizations' break havoc in the squid binary, > so I no longer use it for anything, but '-mcpu=i686 -march=i686' seems > fine to me and tells the compiler that your only target processor is of > the 686 class. If you are not planning to debug the thing, add > '-fomit-frame-pointer'. > > -mi (who gets annoyed every once in a while when he sees > people discouraging optimization as dangerous instead of > fixing the compiler) Uh, have you actually _looked_ at the gcc source? Making such a statement is rather arrogant if you aren't willing to put some work into the compiler yourself. gcc is not an easy program to fix, it is rather large and complex. -- John Baldwin <jhb@bsdi.com> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007241707.KAA49181>