Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!eos!ptolemy!raymond From: raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) Newsgroups: comp.sys.ibm.pc Subject: Turbo C links in everything in obj's Message-ID: <1065@ptolemy.arc.nasa.gov> Date: 23 Mar 89 09:15:05 GMT Reply-To: raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) Organization: NASA Ames Research Center, Moffett Field, CA Lines: 17 It appears that the linker in Turbo C (2.0) links in everything you have in your .objs independent of whether the code is actually used. For instance, if you have a file with the following fn's in it main, a, b, c, d, e and main does not call any of a, b, c, d, or e, the linker still includes the objects for a, b, c, d, and e. Sure it might be a bit faster, but I should have the option to compile the junk out, right? Its simple to find out what fn's are being used: traverse the call tree recursively starting with main. Any ideas? Does the Microsoft linker handle this? Can I use it with TC? -- Eric A. Raymond (raymond@ptolemy.arc.nasa.gov) Nothing left to do but :-) :-) :-)