From owner-freebsd-questions@FreeBSD.ORG Wed Aug 5 10:19:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47D62106564A for ; Wed, 5 Aug 2009 10:19:26 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by mx1.freebsd.org (Postfix) with ESMTP id B6A778FC0C for ; Wed, 5 Aug 2009 10:19:25 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id n75AJOwP098540; Wed, 5 Aug 2009 12:19:24 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 9F655B85D; Wed, 5 Aug 2009 12:19:23 +0200 (CEST) Date: Wed, 5 Aug 2009 12:19:23 +0200 From: Roland Smith To: David Southwell Message-ID: <20090805101923.GA26096@slackbox.xs4all.nl> References: <200908051054.07456.david@vizion2000.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <200908051054.07456.david@vizion2000.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Learning about Control of Optimization -- for dummies please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 10:19:26 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.h= tml. >=20 > I am about to build a new kernel am starting to dig a bit deeper into thi= ngs I=20 > have, until now, taken for granted. >=20 > The above link is very informative in technical terms about how to contro= l=20 > optimization but I find it difficult to interpret the info in a way that = tells=20 > 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=3Dnocona. 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.=20 Roland --=20 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) --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkp5XKsACgkQEnfvsMMhpyVg1QCfdMQTSPfjmiuqoFSzl+dEWF/e Z5sAn3qSyDwV7og7sX7LZq6zwZwP7cLs =bv04 -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--