Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!psuvm!uh2 From: UH2@psuvm.psu.edu (Lee Sailer) Newsgroups: comp.sys.amiga.tech Subject: Re: Writing small code in SAS/C 5.10 Message-ID: <90273.111443UH2@psuvm.psu.edu> Date: 30 Sep 90 15:14:43 GMT References: <13148@leadsv.UUCP> <12482@ogicse.ogi.edu> <1990Sep29.214241.27653@agate.berkeley.edu> Organization: Penn State University Lines: 14 >Also, the main program itself is not the culprit, it is the linking process >that increases your size. Another thing that increases the final code size, at least in Lattice 4.01, is the "startup code." Before your main() gets executed, a program called _main() is executed. It is moderately large. _main() sets up the WorkBench message port, parses the command line, and other stuff like that. You probably don't need it all. You can find the source to _main(), edit out the parts yopu don't need, and use it instead of the general purpose original. lee