Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Apr 2005 12:53:26 +0400
From:      "Andrew P." <infofarmer@mail.ru>
To:        Dick Hoogendijk <dick@nagual.st>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: AMD64 optimization on FreeBSD 5.4 i386
Message-ID:  <42510086.4000205@mail.ru>
In-Reply-To: <20050404081350.GA9048@lothlorien.nagual.st>
References:  <20050404073532.GA13922@localhost> <20050404081350.GA9048@lothlorien.nagual.st>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42510086.4000205>