View previous topic :: View next topic |
Author |
Message |
rapunzelcardoso n00b

Joined: 26 May 2010 Posts: 3
|
Posted: Tue Feb 08, 2011 5:05 am Post subject: Use of a specific gcc O3 flag on AMD64 architecture |
|
|
Hello, followers of the cow. I've read that the -O3 gcc flag enables optimizations that basically fuck up. Now, i've saw exactly what those optimizations are and one is to do crazy inlining and other one is to use more registers on architectures with many registers (-frename-registers). So, since -03 by itself is said to be evil but -frename-registers should be advantageous on amd64 since it has some registers (at least more than x86 so I'm thinking it qualifies as good for the flag), anyone knows if 02 + -frename-registers is safe? I know that safe is a poorly defined word so let's say "safe so that it doesn't fuck up more than 1 application in 100". Hugs to everybody that follows Larry the cow. |
|
Back to top |
|
 |
salahx Guru

Joined: 12 Mar 2005 Posts: 559
|
Posted: Tue Feb 08, 2011 5:30 am Post subject: |
|
|
On amd64 -frename-registers is already enabled.
You can see exactly what optimization are included in -O2 with
Code: |
gcc -O2 -Q --help=optimizers
|
|
|
Back to top |
|
 |
rapunzelcardoso n00b

Joined: 26 May 2010 Posts: 3
|
Posted: Tue Feb 08, 2011 5:44 am Post subject: |
|
|
salahx wrote: | On amd64 -frename-registers is already enabled.
You can see exactly what optimization are included in -O2 with
Code: |
gcc -O2 -Q --help=optimizers
|
|
Thank you salahx |
|
Back to top |
|
 |
pilla Bodhisattva


Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Fri Mar 11, 2011 1:46 pm Post subject: |
|
|
Moved from Gentoo Chat to Gentoo on AMD64. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
 |
|