-O more than the sum of its parts?

me22 me22.ca@gmail.com
Tue Mar 9 03:43:00 GMT 2010


On 8 March 2010 22:31, drew stortz <drew.stortz@gmail.com> wrote:
>
> However, experiment tells me that this is far from true.  When I
> compile the same c file both ways, the object file produced with -O is
> around 20% smaller than the one produced with all of the individual
> optimizations added.  Before filing a bug or investigating further, I
> wanted to ask the list: is my interpretation of the -O switch
> incorrect?  Is it more than just the sum of those individual
> optimizations?
>

Yes; My understanding is that all of the -O levels have features not
controllable with individual flags.



More information about the Gcc-help mailing list