gcc: Optimization Options

llewelly@dbritsch.dsl.xmission.com llewelly@dbritsch.dsl.xmission.com
Wed Jul 26 11:03:00 GMT 2000


On Wed, 26 Jul 2000, Ednardo Lobo wrote:

> Hi all,
> 
> Question:
> 
> Which of them (-O1, -O2, -O3) build the binary more optimizate and of
> the smaller size??
> 

-Os optimizes for small size.

See gcc.gnu.org/onlinedocs/gcc_2.html#SEC11 for more info on optimization
  flags.



More information about the Gcc-help mailing list