Keeping executables small (was: main() and exit())
Alan J Rosenthal
flaps at dgp.toronto.edu
Fri Jan 13 04:42:08 AEST 1989
scs at 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.
More information about the Comp.lang.c
mailing list