From owner-freebsd-hackers Thu Sep 26 00:03:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA19129 for hackers-outgoing; Thu, 26 Sep 1996 00:03:31 -0700 (PDT) Received: from pdx1.world.net (pdx1.world.net [192.243.32.18]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA19092 for ; Thu, 26 Sep 1996 00:03:28 -0700 (PDT) Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with ESMTP id AAA23114; Thu, 26 Sep 1996 00:03:27 -0700 (PDT) Received: (proff@localhost) by suburbia.net (8.7.4/Proff-950810) id RAA16113; Thu, 26 Sep 1996 17:02:11 +1000 From: Julian Assange Message-Id: <199609260702.RAA16113@suburbia.net> Subject: Re: BLOAT in minimal programs To: julian@whistle.com (Julian Elischer) Date: Thu, 26 Sep 1996 17:02:10 +1000 (EST) Cc: hackers@freebsd.org In-Reply-To: <324A1DAE.41C67EA6@whistle.com> from "Julian Elischer" at Sep 25, 96 11:07:42 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I wanted to write a minimal footprint program > that would be as tiny as possible.. > it seems impossible.. > here is the symbol list for this statically linked program. > it uses NO stdio functions. > it assings a few integer variables calls a syscall and exits. > It's over 38K long! > > THIS IS NOT MINIMAL! > I DID NOT WANT ALL THIS CRAP! > why oh why did I get malloc? > vfprintf? > __CurrentRuneLocale ? > hell it doesn't even contain a STRING let alone a default nationality! > > etc.etc. > > there has got to be a better way! > about the only thing I want is errno and some syscalls. > > julian Try with _main and _exit -- "Of all tyrannies a tyranny sincerely exercised for the good of its victims may be the most oppressive. It may be better to live under robber barons than under omnipotent moral busybodies, The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for own good will torment us without end, for they do so with the approval of their own conscience." - C.S. Lewis, _God in the Dock_ +---------------------+--------------------+----------------------------------+ |Julian Assange RSO | PO Box 2031 BARKER | Secret Analytic Guy Union | |proff@suburbia.net | VIC 3122 AUSTRALIA | finger for PGP key hash ID = | |proff@gnu.ai.mit.edu | FAX +61-3-98199066 | 0619737CCC143F6DEA73E27378933690 | +---------------------+--------------------+----------------------------------+