complete listing of CPUTYPES

0 views
Skip to first unread message

Aryeh M. Friedman

unread,
Aug 30, 2008, 7:55:11 AM8/30/08
to freebsd-...@freebsd.org
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?
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

ill...@gmail.com

unread,
Aug 30, 2008, 12:33:03 PM8/30/08
to Aryeh M. Friedman, freebsd-...@freebsd.org
2008/8/30 Aryeh M. Friedman <aryeh.f...@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.


--
--

Abdullah Ibn Hamad Al-Marri

unread,
Aug 30, 2008, 12:38:43 PM8/30/08
to Aryeh M. Friedman, freebsd-...@freebsd.org
----- Original Message ----

> From: Aryeh M. Friedman <aryeh.f...@gmail.com>
> To: freebsd-...@freebsd.org
> Sent: Saturday, August 30, 2008 2:55:11 PM
> Subject: complete listing of CPUTYPES
>
> 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?

Since FreeBSD uses GCC check it here.

http://gentoo-wiki.com/Safe_Cflags

Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/

Manolis Kiagias

unread,
Aug 30, 2008, 12:41:14 PM8/30/08
to Aryeh M. Friedman, freebsd-...@freebsd.org
ill...@gmail.com wrote:
> 2008/8/30 Aryeh M. Friedman <aryeh.f...@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.

Aryeh M. Friedman

unread,
Aug 30, 2008, 8:47:39 AM8/30/08
to freebsd-...@freebsd.org
Manolis Kiagias wrote:
> ill...@gmail.com wrote:
>> 2008/8/30 Aryeh M. Friedman <aryeh.f...@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?

Roland Smith

unread,
Aug 30, 2008, 1:28:59 PM8/30/08
to Aryeh M. Friedman, freebsd-...@freebsd.org
On Sat, Aug 30, 2008 at 07:55:11AM -0400, Aryeh M. Friedman wrote:
> 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)

I think it should be CPUTYPE?=prescott on i386, according to
/usr/share/mk/bsd.cpu.mk.

Roland
--
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Aryeh M. Friedman

unread,
Aug 30, 2008, 9:39:49 AM8/30/08
to Roland Smith, freebsd-...@freebsd.org
Roland Smith wrote:
> On Sat, Aug 30, 2008 at 07:55:11AM -0400, Aryeh M. Friedman wrote:
>
>> 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)
>>
>
> I think it should be CPUTYPE?=prescott on i386, according to
> /usr/share/mk/bsd.cpu.mk.
>

Thats the type that nocona seems to alias to (CFLAGS have -march=prescott)
> Roland

Erik Trulsson

unread,
Aug 30, 2008, 1:51:40 PM8/30/08
to Aryeh M. Friedman, freebsd-...@freebsd.org
On Sat, Aug 30, 2008 at 08:47:39AM -0400, Aryeh M. Friedman wrote:
> Manolis Kiagias wrote:
> > ill...@gmail.com wrote:
> >> 2008/8/30 Aryeh M. Friedman <aryeh.f...@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
ertr...@student.uu.se

Reply all
Reply to author
Forward
0 new messages