From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QlsTz-0007Gz-4J for garchives@archives.gentoo.org; Wed, 27 Jul 2011 01:00:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FE8121C1EB; Wed, 27 Jul 2011 01:00:10 +0000 (UTC) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.104]) by pigeon.gentoo.org (Postfix) with ESMTP id DC91D21C1E1 for ; Wed, 27 Jul 2011 00:59:06 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAIANFhL058liQS/2dsb2JhbAA1AQEFKVEcDA0LAgIyAgIUUR6EVpNjjxh3iQCwfZE0gSuEBoEPBIdVkCQei0g X-IronPort-AV: E=Sophos;i="4.67,272,1309708800"; d="scan'208";a="668603006" Received: from unknown (HELO moriah.localdomain) ([124.150.36.18]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 27 Jul 2011 08:59:05 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 13166C1E2 for ; Wed, 27 Jul 2011 08:59:04 +0800 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.lan.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riwZJ6vh7SEl for ; Wed, 27 Jul 2011 08:58:45 +0800 (WST) Received: from [192.168.48.1] (troll [192.168.48.1]) by moriah.localdomain (Postfix) with ESMTP id 63B53C1DF for ; Wed, 27 Jul 2011 08:58:40 +0800 (WST) Subject: Re: [gentoo-user] CFlags for CPU From: Bill Kenworthy To: gentoo-user@lists.gentoo.org In-Reply-To: References: <4E2F253E.1000508@alokat.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 27 Jul 2011 08:58:39 +0800 Message-ID: <1311728319.21069.5.camel@troll> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 7582f6156fc89583c06ef0d562f98d1a On Tue, 2011-07-26 at 14:58 -0400, Michael Mol wrote: > On Tue, Jul 26, 2011 at 4:36 PM, Alokat wrote: > > Hi folks, > > > > I'm wondering what kind of cpu-type I should use? > > > > cat /proc/cpuinfo > [snip] > > model name : Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz > > [snip] > > .............. > > > > After a short research on this website: > > http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options > > > > I guess core2 is the right one? > > Is that true? > > That should work fine. Or 'native', if you don't plan on playing with distcc. > moriah tuxonice-2.6.39 # gcc -Q --help=target -march=core2 >a moriah tuxonice-2.6.39 # gcc -Q --help=target -march=native >b moriah tuxonice-2.6.39 # diff a b 23c23 < -mcx16 [disabled] --- > -mcx16 [enabled] 56c56 < -msahf [disabled] --- > -msahf [enabled] 74c74 < -mtune= --- > -mtune= core2 moriah tuxonice-2.6.39 # I am now using core2 as I was having some really odd problems after mixing flags after multiple hardware changes along with native. Core2 is recommended for this processor, and I cant see the two flags changed via native making a difference, but the previous processors is no longer available to check. Perhaps someone could do the above and send me the result (the full "gcc -Q --help=target -march=native", using gcc-4.5) for an intel E4600? (the list probably wont be interested!) BillK