From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 11:18:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A05E316A4BF for ; Thu, 28 Aug 2003 11:18:51 -0700 (PDT) Received: from moutvdom.kundenserver.de (moutvdom.kundenserver.de [212.227.126.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62BA243FE0 for ; Thu, 28 Aug 2003 11:18:50 -0700 (PDT) (envelope-from stoerte@dreamwarrior.net) Received: from [212.227.126.220] (helo=mrvdomng.kundenserver.de) by moutvdom.kundenserver.de with esmtp (Exim 3.35 #1) id 19sRM8-0000aU-00; Thu, 28 Aug 2003 20:18:48 +0200 Received: from [217.230.135.63] (helo=dreamwarrior.foobar.ath.cx) by mrvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 19sRM7-0005Yd-00; Thu, 28 Aug 2003 20:18:48 +0200 Received: from stoerte by dreamwarrior.foobar.ath.cx with local (Exim 4.20) id 19sRM6-00025K-Qp; Thu, 28 Aug 2003 20:18:46 +0200 To: Denis Troshin References: <1671561231.20280829005225@mail.ru> From: Frank Ruell Date: Thu, 28 Aug 2003 20:18:46 +0200 In-Reply-To: <1671561231.20280829005225@mail.ru> (Denis Troshin's message of "Tue, 29 Aug 2028 00:52:25 +0700") Message-ID: <87ekz5ve61.fsf@dreamwarrior.foobar.ath.cx> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Necessary code or trash? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 18:18:51 -0000 Denis Troshin 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