complete listing of CPUTYPES

Erik Trulsson ertr1013 at
Sat Aug 30 17:51:46 UTC 2008

On Sat, Aug 30, 2008 at 08:47:39AM -0400, Aryeh M. Friedman wrote:
> Manolis Kiagias wrote:
> > illoai at wrote:
> >> 2008/8/30 Aryeh M. Friedman <aryeh.friedman at>:
> >>  
> >>> 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/ 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/ 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 at

More information about the freebsd-questions mailing list