Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple question (not for me however...)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Kamyk
n00b
n00b


Joined: 09 Mar 2006
Posts: 2
Location: Poland

PostPosted: Thu Mar 09, 2006 8:54 pm    Post subject: Simple question (not for me however...) Reply with quote

I have AMD Athlon 64 3000+ (S939) processor.

Should I use a flag -march=k8 or -march=athlon64 ?
Back to top
View user's profile Send private message
neylitalo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2006
Posts: 81

PostPosted: Thu Mar 09, 2006 9:22 pm    Post subject: Reply with quote

-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
View user's profile Send private message
-BarneY-
Tux's lil' helper
Tux's lil' helper


Joined: 03 Oct 2005
Posts: 91

PostPosted: Thu Mar 09, 2006 11:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kamyk
n00b
n00b


Joined: 09 Mar 2006
Posts: 2
Location: Poland

PostPosted: Fri Mar 10, 2006 10:21 pm    Post subject: Reply with quote

Ok, thanks for your help :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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