This is the mail archive of the
mailing list for the GCC project.
Re: Gcc optimization flags
Scott Robert Ladd <email@example.com> writes:
> Long Fei wrote:
>> It seems that without turning on the -O flag, other optimization flags
>> won't have any effect ?
>> Did anybody have any experience in using the flags separately rather
>> than -Ox ?
> The compiler performs several very basic optimizations when -O is in
> effect. Essentially, -O turns the optimizer on; the additional options
> then refine the optimization process.
Yep. It is also worth pointing out that there are several
optimizations that are controlled only by -O level; they do not have
-f switches of their own.