From owner-freebsd-questions@FreeBSD.ORG Mon Apr 4 08:53:24 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E794716A4CE for ; Mon, 4 Apr 2005 08:53:24 +0000 (GMT) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9337843D48 for ; Mon, 4 Apr 2005 08:53:24 +0000 (GMT) (envelope-from infofarmer@mail.ru) Received: from [83.237.13.44] (port=3714 helo=[172.17.0.69]) by mx2.mail.ru with asmtp id 1DINKk-000AG3-00; Mon, 04 Apr 2005 12:53:22 +0400 Message-ID: <42510086.4000205@mail.ru> Date: Mon, 04 Apr 2005 12:53:26 +0400 From: "Andrew P." User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dick Hoogendijk References: <20050404073532.GA13922@localhost> <20050404081350.GA9048@lothlorien.nagual.st> In-Reply-To: <20050404081350.GA9048@lothlorien.nagual.st> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected cc: freebsd-questions Subject: Re: AMD64 optimization on FreeBSD 5.4 i386 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: infofarmer@mail.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 08:53:25 -0000 Dick Hoogendijk wrote: > On 04 Apr Bachelier Vincent wrote: > >>Does I compile with march=k8 under cflags ? >>for example: CFLAGS=-O2 -march=k8 -pipe >> CXXFLAGS=$CFLAGS >> >>Well, what do you think ? >>could I optimize more than CPUTYPE=k8 ? > > > Don't have an answer to /your/ question, but mine is related (I think). > Is it still advisable to have "-O -pipe" in /etc/make.conf? > I have a duron 800. Does the "-O2" flag give more errors or is it better > than using the -O? To quote the Handbook: ``The optimization -O2 is much slower, and the optimization difference between -O and -O2 is normally negligible.'' The only reason one would want to use -O2 would be perfectionism, I think :) Best wishes, Andrew P.