Re: tinyconfig x86-32 vmlinux sizes by gcc compiler version

From: josh
Date: Thu Dec 04 2014 - 17:25:30 EST


On Thu, Dec 04, 2014 at 01:32:59PM -0800, Joe Perches wrote:
> Just fyi.
>
> At least for x86-32, it seems later versions of gcc
> are producing smaller images.
>
> $ size vmlinux.*
> text data bss dec hex filename
> 657725 118496 1189040 1965261 1dfccd vmlinux.4.4
> 633563 118528 1189448 1941539 1da023 vmlinux.4.6
> 633277 118496 1189592 1941365 1d9f75 vmlinux.4.7
> 632299 121120 1192784 1946203 1db25b vmlinux.4.9

I would certainly hope that GCC's -Os gets better over time. However, I
find the increase in data/bss and thus overall size in 4.9 concerning.
Any idea what that comes from?

- Josh Triplett
--
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/