From owner-freebsd-stable Mon Jul 24 7: 8:19 2000 Delivered-To: freebsd-stable@freebsd.org Received: from privatecube.privatelabs.com (privatecube.privatelabs.com [198.143.31.30]) by hub.freebsd.org (Postfix) with ESMTP id 838A037BA0C for ; Mon, 24 Jul 2000 07:08:16 -0700 (PDT) (envelope-from mi@virtual-estates.net) Received: from misha.privatelabs.com (misha.privatelabs.com [198.143.31.6]) by privatecube.privatelabs.com (8.9.3/8.9.2) with ESMTP id JAA18813; Mon, 24 Jul 2000 09:07:18 -0400 Received: from virtual-estates.net (localhost [127.0.0.1]) by misha.privatelabs.com (8.9.3/8.9.3) with ESMTP id KAA26602; Mon, 24 Jul 2000 10:03:43 -0400 (EDT) (envelope-from mi@virtual-estates.net) Message-Id: <200007241403.KAA26602@misha.privatelabs.com> Date: Mon, 24 Jul 2000 10:03:40 -0400 (EDT) From: mi@aldan.algebra.com Subject: Re: Recommended compilation optimizations To: djb@ifa.au.dk Cc: Dan Larsson , FreeBSD Stable List In-Reply-To: <20000724152021.A61713@relativity.student.utwente.nl> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message