Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo optimization
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
borkes
n00b
n00b


Joined: 15 Jul 2007
Posts: 5

PostPosted: Fri May 30, 2008 7:30 am    Post subject: gentoo optimization Reply with quote

Hi, gurus!

I am interested in how optimization of source code compiling under certain architecture works. What is going on the level of compiler?
Are there real benefits of doing this? What is the achieved gain in performance?
Can you pls provide me with some benchmarks/articles about subj..

And another question is abt -Ox flags in make.conf. Are they worth using if X is higher than 2? Any examples would be appreciated! :)
Back to top
View user's profile Send private message
button
n00b
n00b


Joined: 24 Dec 2007
Posts: 65
Location: Croatia

PostPosted: Fri May 30, 2008 7:56 am    Post subject: Reply with quote

I don't know the answers to all questions, but I can tell you the following (somebody correct me if I'm wrong):

The performance gain from compiling is, AFAIK, only 3-5%. You get also get some benefit from USE flags which allow you to install only what you really need (again, this affects disk space rather than performance).

The highest level is -O3. Any higher number is interpreted as 3.
For details refer to
$ man gcc
Back to top
View user's profile Send private message
gentoo-dev
Apprentice
Apprentice


Joined: 24 Jan 2006
Posts: 172

PostPosted: Fri May 30, 2008 10:59 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/gcc-optimization.xml
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Fri May 30, 2008 11:45 am    Post subject: Reply with quote

next time search first b4 you post....i mean in a good way :wink:
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri May 30, 2008 5:37 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Duplicate Threads.

See here, here, here, definitely here, here, and here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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