Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2009 19:07:57 +0000
From:      Saifi Khan <saifikhan@gmail.com>
To:        Pojken Purken <pp@pp.dyndns.biz>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: default CFLAGS
Message-ID:  <9a52b1190901241107h5bff8c1al6c980b7ad8e99051@mail.gmail.com>
In-Reply-To: <497B5686.8050600@pp.dyndns.biz>
References:  <Pine.LNX.4.64.0901241734020.6296@localhost> <20090124124535.3006687c@gumby.homeunix.com> <9a52b1190901240451i14dc544fm1c241d6f43fa897b@mail.gmail.com> <20090124131629.1f9fabe4@gumby.homeunix.com> <497B2536.7030907@pp.dyndns.biz> <20090124174357.4aafcf1a@gumby.homeunix.com> <497B5686.8050600@pp.dyndns.biz>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken <pp@pp.dyndns.biz> wrote:
> RW wrote:
>> On Sat, 24 Jan 2009 15:27:02 +0100
>> Morgan Wesstr=F6m <freebsd-questions@pp.dyndns.biz> wrote:
>>
>>
>>> The section "options enabled" will list them all. I usually only add
>>> "-march=3Dnative" to my CFLAGS to enable a few more CPU specific
>>> optimizations.
>>
>> If you set CPUTYPE, -march is set to match, so setting -march=3Dnative
>> should be redundant. OTOH a number of other make variables are defined
>> from CPUTYPE, so if you set  -march=3Dnative, but not CPUTYPE you might
>> miss some optimisations based on build options.
>>
>> I've no idea whether there are any such options, just that you're
>> probably not going to do better than setting CPUTYPE, and leaving the
>> rest alone.
>
> I'm sorry I was unclear. I set CPUTYPE to native of course which is then
> passed as -march=3Dnative to compiler.
>

The entry in file /var/run/dmesg.boot shows the CPU information as
CPU: Intel (R) Celeron (R) CPU 2.40 GHz (686-class CPU)

The entry in /usr/share/examples/etc/make.conf shows CPU types for Intel as
core2 core nocona pentium4m pentium4 prescott pentium3m pentium3 pentium-m
pentium2 pentiumpro pentium-mx pentium i486 i386

What would be the appropriate CPUTYPE specification in this case ?

Is there any table which sort of maps the marketing names of the Intel proc=
essor
with the CPU information shown in dmesg ?

--=20
thanks
Saifi.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?9a52b1190901241107h5bff8c1al6c980b7ad8e99051>