Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2004 04:46:16 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Donald Burr <dburr@borg-cube.com>
Cc:        List FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How much difference does 'gcc -O<x>' make?
Message-ID:  <20040312124616.GA41188@xor.obsecurity.org>
In-Reply-To: <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com>
References:  <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<x>'=20
> make in the speed of my system?
>=20
> I notice some ports that claim to not work properly if compiled with=20
> -O<x> (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<x> 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--



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