Newsgroups: comp.lang.c
Path: utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Subject: Re: Keeping executables small (was: main() and exit())
Message-ID: <8901121842.AA16019@explorer.dgp.toronto.edu>
Organization: Dynamic Graphics Project, University of Toronto
References: <416@marob.MASA.COM> <11467@dartvax.Dartmouth.EDU> <179@amsdsg.UUCP> <599@micropen> <1700@valhalla.ee.rochester.edu> <282@twwells.uucp> <7082@batcomputer.tn.cornell.edu> <9253@smoke.BRL.MIL> <8634@bloom-beacon.MIT.EDU> <9295@smoke.BRL.MIL> <8658@bloom-beacon.MIT.EDU>
Date: Thu, 12 Jan 89 13:42:08 EST


scs@adam.pika.mit.edu (Steve Summit) writes:
>In the case of other libraries ...  the potential for
>substantial trimming of executables is significant.  Associated
>with most such libraries are horror stories about the incredible
>resultant size of apparently simple programs (open a window and
>print "Hello, world!" in it, for instance).

On the other hand, don't forget that "Hello, world" isn't a typical
program, and if it's 32K but so are some much larger programs, this
might be fine.  Optimizing for "Hello, world" rather than for larger
programs would be a mistake.

ajr

--
"The goto statement has been the focus of much of this controversy."
	    -- Aho & Ullman, Principles of Compiler Design, A-W 1977, page 54.

