Disabling inlining entirely saves 400+ bytes...

Andre armcc2000 at yahoo.com
Tue Jun 20 04:46:36 UTC 2006


--- Rob Landley <rob at landley.net> wrote:
> This is pretty nice on gcc 4.0.3:
> 
> --- Rules.mak   (revision 15420)
> +++ Rules.mak   (working copy)
> @@ -196,6 +196,7 @@
>  CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,)
>  CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,)
>  CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen)
> +CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0)
> 
> Anybody opinions?
> 

How many combinations of inline-limit and $ARCH did you try ??

-Os -finline-functions -finline-limit=10

used to give the smallest code for ARM in Thumb mode with gcc 3.4.4
last time I tried experimenting with such options... (but seems not
to make a difference anymore with gcc 4.x).

Andre
--



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the busybox mailing list