[pypy-dev] Updated 'High Performance Python' tutorial (the one from EuroPython 2011)

Jérémie Roquet arkanosis at gmail.com
Wed Nov 16 16:40:24 CET 2011


2011/11/16 Ian Ozsvald <ian at ianozsvald.com>:
> From memory the 'native' flag made a difference (I think it allows use
> of SSE?).

It depends on the machine, of course, but yes, on most machines it
enables SSE. Just compare the output of

$ < /dev/null g++ -E -v - |& grep cc1

and

$ < /dev/null g++ -march=native -E -v - |& grep cc1

The following flags are added for me :
-march=core2 -mcx16 -msahf --param l1-cache-size=32 --param
l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2

-mcx16 and -msahf enable some additional instructions (see
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html)
-mtune=core2 enables Intel's 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3

Best regards,

-- 
Jérémie


More information about the pypy-dev mailing list