[opensource-dev] (CTS-315) march choice for 64bit builds

Altair Sythos Memo sythos at gmail.com
Sat Oct 23 03:08:32 PDT 2010


On Sat, 23 Oct 2010 03:08:26 +0200
Boroondas Gupte <sllists at boroon.dasgupta.ch> wrote:

>  Because SSE2 is now required anyway, -march=pentium4 is now passed
> for building lindenlab/mesh-development. Of course, this doesn't work
> for 64bit builds. (See CTS-315
> <https://jira.secondlife.com/browse/CTS-315>.) What should march be
> set to for 64bit buids, if anything?

pentium4 don't support 64bit, but "nocona" yes

the other (imho better) way to select right march/mtune is use
"generic" and declare *all* parameters, sort of:

for 32bit:
gcc -march=generic -mtune=generic -m32 -mmmx -msse -msse2
-mfpmath=both <etc.etc.>

for 64bit:
gcc -march=generic -mtune=generic -m64 -mmmx -msse -msse2
-mfpmath=both <etc.etc.>



More information about the opensource-dev mailing list