Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2000 10:03:40 -0400 (EDT)
From:      mi@aldan.algebra.com
To:        djb@ifa.au.dk
Cc:        Dan Larsson <dl@tyfon.net>, FreeBSD Stable List <stable@FreeBSD.ORG>
Subject:   Re: Recommended compilation optimizations
Message-ID:  <200007241403.KAA26602@misha.privatelabs.com>
In-Reply-To: <20000724152021.A61713@relativity.student.utwente.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007241403.KAA26602>