From owner-freebsd-questions@FreeBSD.ORG Tue Feb 23 13:06:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70644106566B for ; Tue, 23 Feb 2010 13:06:09 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4848FC14 for ; Tue, 23 Feb 2010 13:06:08 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NjuSl-0001vg-BG for freebsd-questions@freebsd.org; Tue, 23 Feb 2010 14:06:07 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Feb 2010 14:06:07 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Feb 2010 14:06:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Tue, 23 Feb 2010 14:05:56 +0100 Lines: 18 Message-ID: References: <20100223122125.1b03f0ec@gumby.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.5) Gecko/20100118 Thunderbird/3.0 In-Reply-To: <20100223122125.1b03f0ec@gumby.homeunix.com> Subject: Re: Using "march=native" in "/etc/make.conf" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 13:06:09 -0000 On 02/23/10 13:21, RW wrote: > On Tue, 23 Feb 2010 06:41:04 -0500 > Carmel 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.