On Sat, 22 Jan 2005 19:34:11 -0500, Nick Smith <[EMAIL PROTECTED]> wrote:
> > -O3 is more optimized than -O2, but those optimizations usually make the
> > binaries larger which causes other slowdowns. The ideal system-wide 
> > optimization
> > level is -O2 or -Os (-O2 with additional flags for small binaries).
> >
> could you go a little further on this? whats the difference between -O2
> and -Os? which is better for overal and what additional flags for small
> binaries are you talking about?
> 
> thanks

>From 'man gcc'

-Os Optimize for size.  -Os enables all -O2 optimizations that do not
           typically increase code size.  It also performs further optimiza-
           tions designed to reduce code size.
 
           -Os disables the following optimization flags: -falign-functions
           -falign-jumps  -falign-loops -falign-labels  -freorder-blocks
           -fprefetch-loop-arrays

--
[email protected] mailing list

Reply via email to