[YLUG] Why is this so much faster on an Opteron?

Robert Hulme rob at robhulme.com
Mon Sep 24 16:22:14 BST 2007


AHA

trueman% ./flags.sh
-march=pentium4 -mfpmath=sse -msse3
trueman% gcc -O3 -march=pentium4 -mfpmath=sse -msse3 hello1.cpp -o hello1-fast
trueman% time ./hello1-fast
./hello1-fast  2.90s user 0.00s system 99% cpu 2.911 total


flags.sh is http://www.pixelbeat.org/scripts/gcccpuopt



OK it looks like it's the SSE that is making the difference... does
the Opteron et all convert the normal instructions in to SSE ones at
runtime or something?

-Rob

-- 
http://www.robhulme.com/
http://robhu.livejournal.com/

No offence Apu, but when they were handing out religions, you musta
been out taking a whizz.
-- Homer Simpson



More information about the York mailing list