Compressing C programs

Walter Bright bright at Data-IO.COM
Tue Jan 9 07:08:17 AEST 1990


In article <18731 at netnews.upenn.edu> ferris at eniac.seas.upenn.edu.UUCP (Richard T. Ferris) writes:
<I am interested in learning how to reduce the size of my TurboC
<programs.  The .exe files are 13K even for very simple programs.
<Could someone send me some suggested references?  Thanks.

Start by looking at the .MAP file to see what was linked in and how big
each component is. Then you can try to substitute simpler routines, as in:

If your only call to printf is:
	printf("Hello world\n");
replace with:
	fputs("Hello world\n",stdout);



More information about the Comp.lang.c mailing list