Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how can i optimize my processor the best from the make.conf
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
z3rgl1ng
n00b
n00b


Joined: 29 Dec 2004
Posts: 17
Location: Romania

PostPosted: Sun Jan 02, 2005 12:18 pm    Post subject: how can i optimize my processor the best from the make.conf Reply with quote

/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
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Sun Jan 02, 2005 12:24 pm    Post subject: Reply with quote

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


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sun Jan 02, 2005 12:26 pm    Post subject: Reply with quote

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


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Sun Jan 02, 2005 12:26 pm    Post subject: Re: how can i optimize my processor the best from the make.c Reply with quote

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:
Code:
-02 unknown

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


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Sun Jan 02, 2005 12:28 pm    Post subject: Reply with quote

You may also want to consider reading the GCC manual, more specifically the bits regarding runtime flags.
Back to top
View user's profile Send private message
z3rgl1ng
n00b
n00b


Joined: 29 Dec 2004
Posts: 17
Location: Romania

PostPosted: Sun Jan 02, 2005 7:37 pm    Post subject: Reply with quote

thx...
i'v seen that error just once...
next time i'll post the full error message
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