View previous topic :: View next topic |
Author |
Message |
Nutterpc Tux's lil' helper
Joined: 02 Feb 2004 Posts: 83
|
Posted: Thu Oct 01, 2009 6:28 am Post subject: Cflags question |
|
|
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 |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Thu Oct 01, 2009 6:53 am Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Oct 01, 2009 10:57 am Post subject: |
|
|
in fact, -march=native is the best choice. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Oct 01, 2009 7:24 pm Post subject: |
|
|
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 |
|
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
|
|