From owner-freebsd-stable@FreeBSD.ORG Mon Mar 27 21:41:01 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5646E16A400 for ; Mon, 27 Mar 2006 21:41:01 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0A7343D58 for ; Mon, 27 Mar 2006 21:41:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id C88851A4D8D; Mon, 27 Mar 2006 13:41:00 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3ADB051589; Mon, 27 Mar 2006 16:41:00 -0500 (EST) Date: Mon, 27 Mar 2006 16:41:00 -0500 From: Kris Kennaway To: Nikolas Britton Message-ID: <20060327214100.GB73596@xor.obsecurity.org> References: <20060327192044.GA70891@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: -march=pentium2 + -mtune=pentium4 faster then -march=pentium4? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2006 21:41:01 -0000 --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 27, 2006 at 03:33:09PM -0600, Nikolas Britton wrote: > On 3/27/06, Kris Kennaway wrote: > > On Mon, Mar 27, 2006 at 01:05:13PM -0600, Nikolas Britton wrote: > > > Why does GCC produce faster code using "-march=3Dpentium2 > > > -mtune=3Dpentium4" on a Pentium 4 chip versus plain -march=3Dpentium4? > > > > > > Try it... > > > > > > CPUTYPE=3Dpentium2 > > > CFLAGS+=3D -mtune=3Dpentium4 > > > COPTFLAGS+=3D -mtune=3Dpentium4 > > > > Talk to the gcc developers (and provide benchmarks). > > >=20 > What would be an adequate, proof, benchmark? Heh..one presumes you already have such a thing (e.g. nbench as you say below), and that you've carefully measured it in order to formulate your conclusion. "Carefully measured" means the usual benchmarking rules like running your test many times and computing statistics (e.g. using ministat), and making sure your only variable is the thing you think it is, etc. > I've already run several > tests with nbench, testing all of the possible configurations of > -march and -mtune. Kris --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEKFvrWry0BWjoQKURArriAKChXl5opRak9MpssV6I0LBzldQQ3gCg+PpT WEDFKuVxRUPT9PBWw7NvGiQ= =24sU -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--