Using "march=native" in "/etc/make.conf"
ivoras at freebsd.org
Tue Feb 23 13:06:09 UTC 2010
On 02/23/10 13:21, RW wrote:
> On Tue, 23 Feb 2010 06:41:04 -0500
> Carmel<carmel_ny at hotmail.com> wrote:
>> I just acquired an older Gateway GT5220 with an AMD 62 Athlon-x2
>> dual processor. I want to set it up as a sort of test machine. There
>> does not seem to be a specific setting for 'cpu-type' or 'march' for
>> this machine. I have notices on some Linux forums that they recommend
>> using the 'native' keyword; i.e., "march=native" in the 'make.conf'
>> file to get the most optimization out of the CPU. Would that be
>> correct for FreeBSD also? Would it also be appropriate for other CPUs
>> as well?
> FreeBSD sets "march" and other default settings based on CPUTYPE. It's
> probably better to set that.
Yes but the old version of gcc in FreeBSD (4.2) is lacking support for
modern CPUs. Using march=native is fine.
More information about the freebsd-questions