Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 20:18:46 +0200
From:      Frank Ruell <stoerte@dreamwarrior.net>
To:        Denis Troshin <weiv@mail.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Necessary code or trash?
Message-ID:  <87ekz5ve61.fsf@dreamwarrior.foobar.ath.cx>
In-Reply-To: <1671561231.20280829005225@mail.ru> (Denis Troshin's message of "Tue, 29 Aug 2028 00:52:25 %2B0700")
References:  <1671561231.20280829005225@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Denis Troshin <weiv@mail.ru> writes:

> Why most of bin (sbin) utilities are so big.

Do a "file /bin/rm" for example. They are linked static, so they don't
depend on any libs, but are bigger because of that.

Just try it for yourself. A simple hello world program: 
~$ gcc -o hello hello.c
~$ ls -lh hello
-rwxr-xr-x  1 stoerte  stoerte  4.4K Aug 28 20:15 hello*
~$ gcc -static -o hello hello.c
~$ ls -lh hello
-rwxr-xr-x  1 stoerte  stoerte    70K Aug 28 20:16 hello*

cheers,
Frank



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ekz5ve61.fsf>