Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2009 12:19:23 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        David Southwell <david@vizion2000.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Learning about Control of Optimization -- for dummies please
Message-ID:  <20090805101923.GA26096@slackbox.xs4all.nl>
In-Reply-To: <200908051054.07456.david@vizion2000.net>
References:  <200908051054.07456.david@vizion2000.net>

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

[-- Attachment #1 --]
On Wed, Aug 05, 2009 at 10:54:07AM +0100, David Southwell wrote:
> I have found http://docs.freebsd.org/info/gcc/gcc.info.Optimize_Options.html.
> 
> I am about to build a new kernel am starting to dig a bit deeper into things I 
> have, until now, taken for granted.
> 
> The above link is very informative in technical terms about how to control 
> optimization but I find it difficult to interpret the info in a way that tells 
> me what might work best on my own system (Intel quad Core) with 8G of ram.

The build system takes care of that, once you have set the correct
CPUTYPE in /etc/make.conf. For a quad-core, set CPUTYPE=nocona. See
make.conf(5), /usr/src/share/mk/bsd.cpu.mk and
/usr/src/sys/conf/kern.pre.mk.

Additionally, compiler settings for building the kernel can be set with
COPTFLAGS in /etc/make.conf. Using anything other than -O or -O2 is
not guaranteed to work. If you don't know what you are doing, do not use
COPTFLAGS and stick with the defaults that the build system generates. 

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkp5XKsACgkQEnfvsMMhpyVg1QCfdMQTSPfjmiuqoFSzl+dEWF/e
Z5sAn3qSyDwV7og7sX7LZq6zwZwP7cLs
=bv04
-----END PGP SIGNATURE-----

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