Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!key!perry From: perry@key.COM (Perry The Cynic) Newsgroups: comp.sys.mac.programmer Subject: How smart is THINK C? Summary: How smart is Smart Linking? Keywords: THINK C, Smart Linking Message-ID: <826@key.COM> Date: 19 May 89 18:53:47 GMT Reply-To: perry@arkon.key.COM (Perry The Cynic) Organization: Key Computer Laboratories, Fremont Lines: 21 Hello! I have a question about THINK (aka Lightspeed) C, Version 3. In the manual they tell me proudly that they have a 'smart linker'. It uses only those parts that are actually used (called?). Great. So, I put a few functions into a source file, call only one of them from the main program, and look at the result. Nope, all the code is there, even the totally unused functions. What is the granularity of 'smart linking'? One function? One source file? One code segment? And how does that apply to libraries (both MacTraps and project files used as libraries)? Is 'smart linking' supposed to help me with my own code, or does it exist only to avoid including all of MacTraps into every program? What's the scoop? Inquiring mind wants to know. Thanks -- perry -- ------------------------------------------------------------------------ Perry The Cynic (Peter Kiehtreiber) perry@arkon.key.com ** What good signature isn't taken yet? ** ...!pacbell!key!perry