From owner-freebsd-stable@FreeBSD.ORG Mon Mar 27 21:33:22 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 31A3416A401 for ; Mon, 27 Mar 2006 21:33:22 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8C1143D53 for ; Mon, 27 Mar 2006 21:33:10 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by uproxy.gmail.com with SMTP id m3so502194ugc for ; Mon, 27 Mar 2006 13:33:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XJcbu5NkQA+oZGKNM2oScOSgLRzMrFOiBAKdRZddRkHYVTYd/+wd6tGGAvi7p7QPSo+5aTLvuU2/K0zzQJjWqdG5lpfuc+GobANkUG5xHtLPEL870eJUl6GYkw1U8L0e9o3RKMW0/v96aphEoJHPEswZ7hSeJKTQMHuEpAUjL2I= Received: by 10.78.31.18 with SMTP id e18mr61608hue; Mon, 27 Mar 2006 13:33:09 -0800 (PST) Received: by 10.78.31.9 with HTTP; Mon, 27 Mar 2006 13:33:09 -0800 (PST) Message-ID: Date: Mon, 27 Mar 2006 15:33:09 -0600 From: "Nikolas Britton" To: "Kris Kennaway" In-Reply-To: <20060327192044.GA70891@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060327192044.GA70891@xor.obsecurity.org> Cc: freebsd-stable@freebsd.org 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:33:22 -0000 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). > What would be an adequate, proof, benchmark? I've already run several tests with nbench, testing all of the possible configurations of -march and -mtune. -- BSD Podcasts @ http://bsdtalk.blogspot.com/