Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cflags question
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
Nutterpc
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 83

PostPosted: Thu Oct 01, 2009 6:28 am    Post subject: Cflags question Reply with quote

Greetings again one and all

Been a while since i was here, and now I have a question

Being my cpu in my current desktop, am unsure as to what may be the best cflags to use for it

AMD Phenom II X4 955BE

I have a rough idea of what it is I want to use, but ideally thought would ask what other options i would have of what I can set it to

**EDIT**

http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Athlon_X2_7x50.2C_Phenom_X3.2FX4.2C_Phenom_II.2C_Athlon_II <----- This page mentions part of the cflags I can use, but in the sense of gentoo, and my own personal knowledge, I'm itchy to know what else I can add to it

Without having to run those benchmark utils which tell you the most optimal cflags for ur system, they take too long, lol
_________________
If it isn't broke, you ain't tweaked it right
Registered Linux User 353232
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Thu Oct 01, 2009 6:53 am    Post subject: Reply with quote

Hello,

I always use that, whatever my config is:
Code:
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CXXFLAGS="${CFLAGS}"


And GCC will take the best and safe for your CPU ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Oct 01, 2009 10:57 am    Post subject: Reply with quote

in fact, -march=native is the best choice.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Oct 01, 2009 7:24 pm    Post subject: Reply with quote

d2_racing wrote:
in fact, -march=native is the best choice.
...if you have >=sys-devel/gcc-4.2.3

In fact, you can see what -march=native will set like this
Code:
gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"


So, as you can see, you don't even need -mtune=native :P
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