Date: Sat, 30 Aug 2008 19:51:40 +0200 From: Erik Trulsson <ertr1013@student.uu.se> To: "Aryeh M. Friedman" <aryeh.friedman@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: complete listing of CPUTYPES Message-ID: <20080830175140.GA37966@owl.midgard.homeip.net> In-Reply-To: <48B9416B.6050903@gmail.com> References: <48B9351F.8090903@gmail.com> <d7195cff0808300933n55592cfer9aa30d141840f898@mail.gmail.com> <48B9782A.5010300@gmail.com> <48B9416B.6050903@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <aryeh.friedman@gmail.com>: > >> > >>> 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.) -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080830175140.GA37966>