Re: gcc optimization with -O<x>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

To help assess "exact what it enables", you can follow these Unix / bash steps...

touch dummy.cpp
g++ -O3 -S -fverbose-asm dummy.cpp
cat dummy.s

Replace "-O3" with whatever carte blanche optimization setting you are interested in.

HTH,
--Eljay


At 03:17 PM 9/17/2004, Daniel Eftodi wrote:
Hello,

I have this Q about what '-O4 thru -O6 and -O9' does/exactly what it enables,
and so forth.

yes, I've read the relative sections[1,2] of the manual about this topic - and
find only up to -O3 defined.

- - -
[1] -
http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
[2] - http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Optimize-Options.html#Optimize-Options




_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux