From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 17:51:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6E1F106566B for ; Sat, 30 Aug 2008 17:51:46 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 575008FC1F for ; Sat, 30 Aug 2008 17:51:46 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-7-225.bredband.comhem.se ([83.253.7.225]:54417 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KZUbu-00045T-5t for freebsd-questions@freebsd.org; Sat, 30 Aug 2008 19:51:45 +0200 Received: (qmail 66240 invoked from network); 30 Aug 2008 19:51:40 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 30 Aug 2008 19:51:40 +0200 Received: (qmail 38050 invoked by uid 1001); 30 Aug 2008 19:51:40 +0200 Date: Sat, 30 Aug 2008 19:51:40 +0200 From: Erik Trulsson To: "Aryeh M. Friedman" Message-ID: <20080830175140.GA37966@owl.midgard.homeip.net> References: <48B9351F.8090903@gmail.com> <48B9782A.5010300@gmail.com> <48B9416B.6050903@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B9416B.6050903@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.253.7.225 X-Scan-Result: No virus found in message 1KZUbu-00045T-5t. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KZUbu-00045T-5t 400e2e9a604672b1fb2c61e5e27d5283 Cc: freebsd-questions@freebsd.org Subject: Re: complete listing of CPUTYPES X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2008 17:51:46 -0000 On Sat, Aug 30, 2008 at 08:47:39AM -0400, Aryeh M. Friedman wrote: > Manolis Kiagias wrote: > > illoai@gmail.com wrote: > >> 2008/8/30 Aryeh M. Friedman : > >> > >>> I just switched from amd64 to i386 8-current on a machine and was using > >>> CPUTYPE?=nocona but want to know: > >>> > >>> a) Is this still correct for a intel dual core e6850 (3.0GHz) > >>> b) Is there a file that contains all the CPUTYPES and a description > >>> of what > >>> processors belong to which type? > >>> > >> > >> I think that's a gcc thing, more or less. > >> man gcc gives a pretty exhaustive list of the cpu types > >> (and synonyms) which you may set. > >> > >> > > You can also see a list of CPUTYPEs in the examples: > > > > /usr/share/examples/etc/make.conf > > > > core and core2 exist (in 7.0-RELEASE). I guess core2 is what you are > > looking for. > > > Every type is documented in gcc(1) except core and core2.... do these > actually do anything? Yes. CPUTYPE is translated by /usr/share/mk/bsd.cpu.mk into the options actually passed on to gcc. (This means that the list of valid values for CPUTYPE is not identical to the list of values that gcc accepts as arguments to -march.) This is to handle the fact that gcc might not yet know about all the newest CPU's. Setting CPUTYPE to any of 'core2' or 'prescott' or 'nocona' will actually pass on exactly the same flags to gcc. (I suspect that /usr/share/mk/bsd.cpu.mk ought to be updated in -CURRENT and 7.x to reflect the fact that the version of gcc included there knows about more CPU models than the version of gcc included with 6.x does.) -- Erik Trulsson ertr1013@student.uu.se