Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758426AbXJYTuA (ORCPT ); Thu, 25 Oct 2007 15:50:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753923AbXJYTtw (ORCPT ); Thu, 25 Oct 2007 15:49:52 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:33170 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753907AbXJYTtw (ORCPT ); Thu, 25 Oct 2007 15:49:52 -0400 Date: Thu, 25 Oct 2007 21:50:20 +0200 From: Adrian Bunk To: Michael Lothian Cc: linux-kernel@vger.kernel.org Subject: Re: Possibility of adding -march=native to x86 Message-ID: <20071025195020.GS30533@stusta.de> References: <0EC33A59AA72084CA28B83816B40929F02682BB3@REEDXCLSXM01V03.rbsres01.net> <20071025185022.GP30533@stusta.de> <20071025191723.GQ30533@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1212 Lines: 37 On Thu, Oct 25, 2007 at 08:32:51PM +0100, Michael Lothian wrote: > On 25/10/2007, Adrian Bunk wrote: > > On Thu, Oct 25, 2007 at 08:09:56PM +0100, Michael Lothian wrote: > > > Actually I changed the Makefile.cpu and changed the -march to native > > > which did slightly change the size of the kernel (slightly larger I > > > think) > > > > > > So what else does that option change? > > > > Look at arch/i386/Kconfig.cpu > > > > Can you be a bit more specific? Let's make an example: Consider you want to compile a kernel for your P4. The MPENTIUM4 option does not only set -march=pentium4, it also enables several other options in arch/i386/Kconfig.cpu resulting in better performance. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/