cvs commit: src/sbin/init init.c
Xin LI
delphij at delphij.net
Sun Sep 28 20:59:11 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kostik Belousov wrote:
> On Sun, Sep 28, 2008 at 12:55:42PM -0700, Xin LI wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Kostik Belousov wrote:
>>> On Sat, Sep 27, 2008 at 12:09:10AM +0000, Xin LI wrote:
>>>> delphij 2008-09-27 00:09:10 UTC
>>>>
>>>> FreeBSD src repository
>>>>
>>>> Modified files:
>>>> sbin/init init.c
>>>> Log:
>>>> SVN rev 183391 on 2008-09-27 00:09:10Z by delphij
>>>>
>>>> Static-ify procedures in init(8).
>>>>
>>>> Revision Changes Path
>>>> 1.66 +79 -79 src/sbin/init/init.c
>>> What is a reason for the change ?
>> This would reduce the size of generated binary...
>
> I am quite curious. Could you, please, show the numbers.
> Is the reduction in size is due to function inlining, or it is purely
> symbol table size issue ?
Oh it's not purely symbol table size, making these stuff static would
reduce instructions by 100+ for this case. If we strip all symbols out
then we still have a 2KB saving by doing this.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAkjf8BMACgkQi+vbBBjt66B1nwCffDVNCGXBm6cqWwfcyrUSvbMA
NgwAnijd7Ya4k3MmiuH7VhDyh9KmPMhc
=K5Hc
-----END PGP SIGNATURE-----
More information about the cvs-src
mailing list