Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Which -march option to use for my Processor
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
rsnfunky
n00b
n00b


Joined: 30 Dec 2007
Posts: 63

PostPosted: Sat Sep 21, 2013 4:43 pm    Post subject: Which -march option to use for my Processor Reply with quote

Hi All,

I have an AMD Phenom II X4 (965) processor. Which -march option should I use in my CFLAGS in make.conf. Do let me know if any other CFLAGS will go with my processor.

The link to my processor info is: http://en.wikipedia.org/wiki/List_of_AMD_Phenom_microprocessors#.22Deneb.22_.28C2.2FC3.2C_45_nm.2C_Quad-core.29

Link to -march options are: http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

Is "barcelona" the correct -march option? Am I required to use the -msse, -msse2, -msse3, -mmmx, -m3dnow options?

Thanks a ton for your help.

Regards,
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Sat Sep 21, 2013 4:50 pm    Post subject: Reply with quote

Just use the safe CFLAGS from the wiki

https://wiki.gentoo.org/wiki/Safe_CFLAGS#A4.2FA6.2FA8-XXXX_.2F_XXXXM

For your CPU:

CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Sep 21, 2013 5:01 pm    Post subject: Reply with quote

If using distcc:
Code:
echo $(
    gcc -v -march=native -x c /dev/null 2>&1 | \
    grep -- '-march' | \
    egrep -o -- '-+(m|param )[-_=.a-zA-Z0-9]+' | \
    sort -u
)


Otherwise:
Code:
-march=native
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