From owner-freebsd-hackers Tue Jun 22 7:47:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from adelphi.physics.adelaide.edu.au (adelphi.physics.adelaide.edu.au [129.127.36.247]) by hub.freebsd.org (Postfix) with ESMTP id 60B5614F3D for ; Tue, 22 Jun 1999 07:47:42 -0700 (PDT) (envelope-from kkennawa@physics.adelaide.edu.au) Received: from bragg (bragg [129.127.36.34]) by adelphi.physics.adelaide.edu.au (8.8.8/8.8.8/UofA-1.5) with SMTP id AAA08248; Wed, 23 Jun 1999 00:17:42 +0930 (CST) Received: from localhost by bragg; (5.65/1.1.8.2/05Aug95-0227PM) id AA30101; Wed, 23 Jun 1999 00:18:10 +0930 Date: Wed, 23 Jun 1999 00:18:09 +0930 (CST) From: Kris Kennaway X-Sender: kkennawa@bragg To: "Brian F. Feldman" Cc: hackers@freebsd.org Subject: Re: cvs commit: src/sys/kern imgact_gzip.c In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 22 Jun 1999, Brian F. Feldman wrote: > > Hmm..I don't have a deflate on my system. This should be linked static as > > well, otherwise you need the runtime linker + libraries, and that has a 69k > > overhead (when stripped). Possibly this could be optimized further..I don't > > know if this is small enough to be useful however. > > It's a proof of concept, it didn't need to be static. I don't have a program > to do deflate either. What I know is that you said it would be hard, but > it was not very hard to make a framework to do what gzexe does in C. Actually: > > > > The question is whether that would be easier than fixing the > > > > kernel to handle gzipped ELF binaries transparently - > > > > almost certainly it would be. I said it would be easy(ier) :) FWIW, compiling libc.a and libz.a with -Os brings the overhead down to 67416 bytes per executable. Linked dynamically it's 4829 bytes (i.e. the other 62k is library code), so it doesn't look like there's much room for improvement. Kris ----- "Never criticize anybody until you have walked a mile in their shoes, because by that time you will be a mile away and have their shoes." -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message