AMD64 optimization on FreeBSD 5.4 i386
Andrew P.
infofarmer at mail.ru
Mon Apr 4 01:53:25 PDT 2005
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.
More information about the freebsd-questions
mailing list