From owner-freebsd-stable Mon Jul 24 10: 7:53 2000 Delivered-To: freebsd-stable@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 8A2A537BCF6 for ; Mon, 24 Jul 2000 10:07:50 -0700 (PDT) (envelope-from jhb@pike.osd.bsdi.com) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id KAA49181; Mon, 24 Jul 2000 10:07:06 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200007241707.KAA49181@pike.osd.bsdi.com> Subject: Re: Recommended compilation optimizations In-Reply-To: <200007241403.KAA26602@misha.privatelabs.com> from "mi@aldan.algebra.com" at "Jul 24, 2000 10:03:40 am" To: mi@aldan.algebra.com Date: Mon, 24 Jul 2000 10:07:06 -0700 (PDT) Cc: stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- 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