This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -O more than the sum of its parts?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]