From owner-freebsd-questions@FreeBSD.ORG Mon Nov 14 17:07:59 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3B41716A41F for ; Mon, 14 Nov 2005 17:07:59 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDB9F43D55 for ; Mon, 14 Nov 2005 17:07:57 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr3.xs4all.nl (8.13.3/8.13.3) with ESMTP id jAEH7uvM042350 for ; Mon, 14 Nov 2005 18:07:56 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id C57CBB822; Mon, 14 Nov 2005 18:07:55 +0100 (CET) Date: Mon, 14 Nov 2005 18:07:55 +0100 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20051114170755.GB48916@slackbox.xs4all.nl> Mail-Followup-To: freebsd-questions@freebsd.org References: <20051114102308.7515.GERARD@seibercom.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <20051114102308.7515.GERARD@seibercom.net> User-Agent: Mutt/1.4.2.1i 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! X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Makefile and Kernel Optimizations in 6.0 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: Mon, 14 Nov 2005 17:07:59 -0000 --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 14, 2005 at 10:23:22AM -0500, Gerard Seibert wrote: > I have read on this forum that the /etc/make.conf file has been moved in > version 6.0. I assume that although it has been moved, that it still > serves the same purpose as it did in the 5.4 version. Is that correct? It hasn't been moved. It's still /etc/make.conf. The names of some variables have changed from NOFOO to NO_FOO. > I also read somewhere that version 6 has CFLAGS=3DO2 set by default. Does > it also have COPTFLAGS=3D-O2 set or does it make any difference? I didn't notice the difference on a 2.4 GHz amd64. >=20 > Makeoptions COPTFLAGS=3D"O2 - pipe" Actually it goes on to recommend > '-funroll-loops' and '-ffast-math' as well. Since I do not know what > those two are about, I never used them. In any case, is it recommended > to use any optimization in the kernel in the new 6.0 version? You can have it in the config file or in make.conf, both work. I don't think that the kernel uses floating point, so -ffast-math shouldn't make a lot of difference. The -pipe flag speeds up the compilation somewhat, but has no effect on the generated code. The -funroll-loops replaces loops of which the size is known by serial instructions. This is somewhat faster but generates larger binaries. Complete information about what an option does is available in the info file of gcc. You can type 'info gcc' to read it, or use the info reader built into emacs. Unless you have an app that takes hours or days to run, I wouldn't worry about optimization settings. Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDeMRrEnfvsMMhpyURAl0JAKCryrJloIeMHWUZlKa1PPGjAQPLcgCgiPV9 hP/KLZo508xXDRlrev/DS1c= =65GT -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8--