Re: What happens with gcc -O6 ?

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

 



Tim Prince <n8tm@xxxxxxx> writes:

> On 6/28/2011 2:04 PM, Dr. David Kirkby wrote:
>> I've got some code where the author has used the compiler option -O6.
>> What happens in a case like this? gcc does not issue any warnings, but
>> as far as I'm aware, such a level of optimisation is not supported. So
>> what would happen in a case like this? Would there be any optimiation,
>> the maximum possible, the default ...?
>>
> Easily checked (e.g. by comparing output for -S option).  Probably
> taken as -O3.

Yes, at present -ON where N > 3 is equivalent to -O3.  It's possible
that in the future some meaning will be assigned to larger values of N,
but I'm not aware of any current plans to do so.

Ian


[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