Subject: Re: How to compare a kernel built with GCC 3.4.2 and GCC 4.0 (preliminary)
To: Vincent <10.50@free.fr>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-kern
Date: 11/09/2004 10:28:51
On Mon, Nov 08, 2004 at 08:30:36PM +0100, Vincent wrote:
> >That can be misleading. What does size(1) report?
> # size /netbsd
> text data bss dec hex filename
> 2673904 66792 266964 3007660 2de4ac /netbsd
>
> # size /netbsd.old
> text data bss dec hex filename
> 2732439 66588 266964 3065991 2ec887 /netbsd.old
>
> netbsd is the new GCC 4.0 compiled kernel
> netbsd.old is the GCC 3.4 one.
If you care for a more detailed report, I wrote a script to
perform some basic symbol size analysis on two kernels. (actually
on any two binaries) I was using it to compare kernel size growth
over time, but it might be interesting in this case also. It's at:
http://www.nimenees.com/netbsd/ksize/gen.sh
eric