View previous topic :: View next topic |
Author |
Message |
Kamyk n00b
Joined: 09 Mar 2006 Posts: 2 Location: Poland
|
Posted: Thu Mar 09, 2006 8:54 pm Post subject: Simple question (not for me however...) |
|
|
I have AMD Athlon 64 3000+ (S939) processor.
Should I use a flag -march=k8 or -march=athlon64 ? |
|
Back to top |
|
|
neylitalo Tux's lil' helper
Joined: 29 Jan 2006 Posts: 81
|
Posted: Thu Mar 09, 2006 9:22 pm Post subject: |
|
|
-march=k8
I quote the Gentoo amd64 installation handbook (here)
Quote: | # AMD64 users who want to use a native 64 bit system should use -march=k8 |
Scroll down a bit to the CFLAGS and CXXFLAGS section to see the part I'm referring to. |
|
Back to top |
|
|
-BarneY- Tux's lil' helper
Joined: 03 Oct 2005 Posts: 91
|
Posted: Thu Mar 09, 2006 11:58 pm Post subject: |
|
|
It simply doesn't matter.
It's completely the same if you are using k8, athlon64, opteron or athlon-fx.
http://gcc.gnu.org/onlinedocs/gcc-3.4.5/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
Quote: | k8, opteron, athlon64, athlon-fx
AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.) |
edit: Hmmm, I'm just wondering a bit. The newer Athlon-64/FX CPU's have support of SSE3, so I'm asking me, if its useful to set the -msse3 flag, if you have a Venice or San Diego Core. I'd say es, but why there is no -march=athlon-venice?
When your CPU supports SSE3 - (You can figure it out by cat'ing your cpuinfo - cat /proc/cpuinfo - and searching for SSE3 at the cpu flags.) - I would add -msse3 to your CFLAGS as well. |
|
Back to top |
|
|
Kamyk n00b
Joined: 09 Mar 2006 Posts: 2 Location: Poland
|
Posted: Fri Mar 10, 2006 10:21 pm Post subject: |
|
|
Ok, thanks for your help |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|