Modula2's godawful IO.
Eric Brown
ecb at pluto.uucp
Sun Apr 17 02:38:26 AEST 1988
In article <942 at unmvax.unm.edu> mike at turing.UNM.EDU.UUCP (Michael I. Bushnell) writes:
>To use printf, it ups your text segment by a whole 2236 bytes. Wow.
>Puts is about 10% of that (200 bytes)
>but isn't really any faster. But CERTAINLY NOT a "20K" overhead. Go
>ahead and use printf. It doesn't really cost you that much.
Now include the size of the floating point libraries. On Microsoft 5.0 C,
calling printf links the floating point emulator, which is about 30K of code.
Is this significant? I think so. I once hacked out 300K out of a suite of
programs by transforming printf's to puts'es and also by using an integer-only
printf. Sometimes, every byte counts. Not all the world is a vax, you know.
-Eric, Called Ultrahacker
More information about the Comp.lang.c
mailing list