[PATCH] Compile options: default to -O2 when -Os is not available

Wolfgang Denk wd at denx.de
Sun May 1 14:58:47 UTC 2011

Dear Rich Felker,

In message <20110501140118.GF277 at brightrain.aerifal.cx> you wrote:
> On Sun, May 01, 2011 at 02:00:27PM +0200, Wolfgang Denk wrote:
> > chains).  This commit changes behaviour so "-O2" gets used as fallback
> > when "-Os" is not available.  This reduces the image size in above
> > test to 1.3 MiB.  This is still 10...15% more then what we get with
> > "-Os", but much better than using no optimization at all.
> Why not -O1?

The -O1 image is ~ 1.5% bigger than the -O2 one
(1278063 versus 1258658 byes for defconfig for PowerPC).

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it  on
the computer.

More information about the busybox mailing list