From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 04:46:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74D0416A4CE for ; Fri, 12 Mar 2004 04:46:21 -0800 (PST) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E02543D46 for ; Fri, 12 Mar 2004 04:46:21 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (5930656ad7712656638831a5ad53ca8d@adsl-67-119-53-203.dsl.lsan03.pacbell.net [67.119.53.203]) by mtaw6.prodigy.net (8.12.10/8.12.10) with ESMTP id i2CCjHQ4007145; Fri, 12 Mar 2004 04:45:18 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0E94B511C9; Fri, 12 Mar 2004 04:46:17 -0800 (PST) Date: Fri, 12 Mar 2004 04:46:16 -0800 From: Kris Kennaway To: Donald Burr Message-ID: <20040312124616.GA41188@xor.obsecurity.org> References: <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com> User-Agent: Mutt/1.4.2.1i cc: List FreeBSD Questions Subject: Re: How much difference does 'gcc -O' make? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 12:46:21 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 12, 2004 at 02:07:26AM -0800, Donald Burr wrote: > A question occurred to me today. How much difference does 'gcc -O'=20 > make in the speed of my system? >=20 > I notice some ports that claim to not work properly if compiled with=20 > -O (the one that comes to mind right away is XFree86 4.x, but I've=20 > seen others) and I am thinking of just turning OFF -O option in my=20 > /etc/make.conf. I'm just wondering how much of an impact this will=20 > have on system performance. I think you're misunderstanding: -O is almost universally fine, it's higher settings (-O2, etc) that are recommended against. Kris --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAUbEYWry0BWjoQKURAuufAJwOkYufk2lxIkrB7vqa+PW2ydQLIgCePEle 4VqmuZbaQMBa5lX4rHu8r4Y= =lvgL -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--