AMD64 optimization on FreeBSD 5.4 i386
Conrad J. Sabatier
conrads at cox.net
Mon Apr 4 04:54:08 PDT 2005
On Mon, 4 Apr 2005 09:35:32 +0200, Bachelier Vincent
<vincent_bachelier at yahoo.fr> wrote:
> Hi, I have a AMD64 and use FreeBSD 5.4 i386.
Why aren't you using the amd64 version of FreeBSD?
> I have set CPUTYPE=k8 to optimize a little for my computer.
> I have seen they set march=athlon-mp when it compile something.
I you were running amd64, you could use CPUTYPE=athlon64.
> Ok, I have see they is a difference between march=k8 and
> march=athlon-mp
>
> Have a idea ?
Yes, download the ISO for amd64 and install it. :-)
> Does I compile with march=k8 under cflags ?
> for example: CFLAGS=-O2 -march=k8 -pipe
> CXXFLAGS=$CFLAGS
I think the CXXFLAGS setting is unnecessary, as this will happen by
default.
> Well, what do you think ?
I think you should be running amd64. :-)
> could I optimize more than CPUTYPE=k8 ?
Yes. See above. :-)
Seriously, though, the amd64 version of FreeBSD is quite stable and
usable, and would allow you to take full advantage of your machine's
64-bit architecture. Why settle for less?
--
Conrad J. Sabatier <conrads at cox.net> -- "In Unix veritas"
More information about the freebsd-questions
mailing list