From owner-freebsd-current Thu Dec 16 13:11:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id E8EA015832 for ; Thu, 16 Dec 1999 13:11:04 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40335>; Fri, 17 Dec 1999 08:02:27 +1100 Content-return: prohibited Date: Fri, 17 Dec 1999 08:10:54 +1100 From: Peter Jeremy Subject: Re: sysinstall: is it really at the end of its lifecycle? In-reply-to: ; from steve@pooh.elsevier.nl on Thu, Dec 16, 1999 at 07:55:35PM +1100 To: freebsd-current@FreeBSD.ORG Message-Id: <99Dec17.080227est.40335@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <199912151624.RAA01525@dorifer.heim3.tu-clausthal.de> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1999-Dec-16 19:55:35 +1100, Steve O'Hara-Smith wrote: >On 15-Dec-99 Oliver Fromme wrote: >> Alexander Langer wrote in list.freebsd-current: >> > gunzip has approx 106 kb, but you save about 50% per executeable. >> >> -r-xr-xr-x 1 root wheel 4648 Jan 28 1999 /usr/bin/minigzip > > It requires the 50Kb libz.so.2 though and some of libc. % cc -static -O -o minigzip minigzip.c -lz % size minigzip text data bss dec hex filename 75299 8524 2004 85827 14f43 minigzip % ls -l minigzip -rwxr-xr-x 1 jeremyp inplat 96509 Dec 17 08:08 minigzip % Or, ignoring the libc code (which is indicative of the effect of building it into a crunched executable): % cc -O -o minigzip minigzip.c /usr/lib/libz.a % ls -l minigzip -rwxr-xr-x 1 jeremyp inplat 48523 Dec 17 08:08 minigzip % size minigzip text data bss dec hex filename 37756 4848 272 42876 a77c minigzip % Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message