View previous topic :: View next topic |
Author |
Message |
z3rgl1ng n00b
Joined: 29 Dec 2004 Posts: 17 Location: Romania
|
Posted: Sun Jan 02, 2005 12:18 pm Post subject: how can i optimize my processor the best from the make.conf |
|
|
/etc/make.conf
i'v don it like this:
CFLAGS="-march=athlon-xp -pipe -02"
and it's working 2 slow...
my processor is an amd athlon xp 2600+ core barton
and i get some errors from gcc when i emerge some appz... like xorg-x11
somthing like this:
-02 unknown... |
|
Back to top |
|
|
racoontje Veteran
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Sun Jan 02, 2005 12:24 pm Post subject: |
|
|
-02? Don't you mean -O2? It's O, as in Optimisation, not 0 as in 1 - 1 = 0.
If you want more foobied CFLAGS, consider mine:
"-O3 -march=athlon64 -ffast-math -fprofile-use" |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sun Jan 02, 2005 12:26 pm Post subject: |
|
|
1) The option you are referring to is correctly called '-O2' (that's OOOOO-TWO, not ZERO-TWO).
2) Search for the topic 'CFLAGS CENTRAL'.
These CFLAGS should do nicely
Code: | CFLAGS="-march=athlon-xp -pipe -O2 -s -fomit-frame-pointer" |
There are a lot more CFLAGS to choose from, but most of them result in a slower overall system performance since they bloat the generated code (like -funroll-loops or -O3) taking a longer time to load.
But CFLAGS settings is a bit like religions anyway: If you believe your settings speed up your system...
Last edited by Voltago on Sun Jan 02, 2005 12:29 pm; edited 2 times in total |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Sun Jan 02, 2005 12:26 pm Post subject: Re: how can i optimize my processor the best from the make.c |
|
|
z3rgl1ng wrote: | i'v don it like this: Code: | CFLAGS="-march=athlon-xp -pipe -02" | and it's working 2 slow...
i get some errors like this: |
Well that is because -02 IS REALLY UNKNOWN.
Change your CFLAGS. The -O2 option consists of a - (hyphen), then a capital letter O (NOT a zero), then the arabic number 2.
And please be specific in your error message copying next time. People here tend to respond faster and more accurately to posts that have the EXACT error message (100% same as what is on the computer screen). Otherwise they will be shot... oops, ignored. |
|
Back to top |
|
|
racoontje Veteran
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Sun Jan 02, 2005 12:28 pm Post subject: |
|
|
You may also want to consider reading the GCC manual, more specifically the bits regarding runtime flags. |
|
Back to top |
|
|
z3rgl1ng n00b
Joined: 29 Dec 2004 Posts: 17 Location: Romania
|
Posted: Sun Jan 02, 2005 7:37 pm Post subject: |
|
|
thx...
i'v seen that error just once...
next time i'll post the full error message |
|
Back to top |
|
|
|