From owner-freebsd-amd64@FreeBSD.ORG Wed May 25 22:17:24 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C73FF16A41C for ; Wed, 25 May 2005 22:17:24 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F9D743D1F for ; Wed, 25 May 2005 22:17:24 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id F3E8C5144D; Wed, 25 May 2005 15:18:11 -0700 (PDT) Date: Wed, 25 May 2005 15:18:11 -0700 From: Kris Kennaway To: K?vesd?n G?bor Message-ID: <20050525221811.GA49299@xor.obsecurity.org> References: <200505251317.22128.nb_root@videotron.ca> <4294BB08.3090703@t-hosting.hu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <4294BB08.3090703@t-hosting.hu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-amd64@freebsd.org Subject: Re: amd64 optimized gcc? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 22:17:24 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2005 at 07:51:04PM +0200, K?vesd?n G?bor wrote: > Hello, >=20 > As for the optimization, I'm very interested how fast can be an actual=20 > optimized system. The stock release doesn't optimizes too much, afaik it= =20 > uses -O. I have been experimenting for a while with building the whole=20 > system with my custom cflags, and yesterday I succeeded. I managed to=20 > build the whole system with >=20 > CFLAGS=3D-s -Os -march=3Dathlon64 > COPTFLAGS=3D-s -Os -march=3Dathlon64 >=20 > I might have used -O2 instead of -Os but not -O3 which made a=20 > compilation error. This might make you feel good, but unless you're running a CPU-bound workload you're unlikely to be able to measure any difference. > The -s is for srtipping the binaries and libs, because this is intended= =20 > to be used on a production system, where we use stable software=20 > releases, thus we don't need debug symbols Binaries are already stripped as they're installed. Kris --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFClPmjWry0BWjoQKURArCgAJ0bBDRwQV8I83GcI5fjYGvlUykrhACdHRCR LZrCpQAkxamgj19S0K96wWc= =T6i9 -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--