Re: Arjan's noinline Patch

From: Kurt Wall
Date: Sun Jan 01 2006 - 23:09:20 EST


On Sun, Jan 01, 2006 at 10:57:10AM -0500, Kurt Wall took 0 lines to write:
> After applying Arjan's noline patch (http://www.fenrus.org/noinlin), I
> see almost a 10% reduction in the size of .text (against 2.6.15-rc6)
> with no apparent errors and no reduction in functionality:
>
> $ size vmlinux.*
> text data bss dec hex filename
> 2578246 462000 479920 3520166 35b6a6 vmlinux.inline
> 2327319 462000 479920 3269239 31e277 vmlinux.noinline

The above was built with gcc 3.4.4. With gcc 4.0.2 on the same config:

$ size vmlinux.402.*
text data bss dec hex filename
2626474 461856 479984 3568314 3672ba vmlinux.402.inline
2313578 461800 479984 3255362 31ac42 vmlinux.402.noinline

An 11.9% size reduction in .text. What I also notice is the 4.0.2
appears to inline more aggressively than 3.4.4 because the same
config is almost 50K larger in the inline case when compiled with gcc
3.4.4. the "noinline" cases were built with Arjan's patch and
CONFIG_CC_OPTIMIZE_FOR_SIZE; the "inline" kernels were built,
obviously, without the patch and without CONFIG_CC_OPTIMIZE_FOR_SIZE.

Kurt
--
Fifth Law of Procrastination:
Procrastination avoids boredom; one never has the feeling that
there is nothing important to do.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/