Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!chuq From: chuq@Apple.COM (Chuq Von Rospach) Newsgroups: comp.sys.mac.programmer Subject: Re: How smart is THINK C? Keywords: THINK C, Smart Linking Message-ID: <31144@apple.Apple.COM> Date: 19 May 89 22:10:43 GMT References: <826@key.COM> Organization: Life is just a Fantasy novel played for keeps Lines: 21 >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? In your source file, the granularity is the file. (which makes sense, actually. If you create an arbitrary CODE resource it may not be possible for the linker to know whether the code is in use or not). If you take that same source file and make it a library, though, when you link it in to your project and build an application only the routines needed will be in there, since the ambiguity isn't there. Chuq Von Rospach =|= Editor,OtherRealms =|= Member SFWA/ASFA chuq@apple.com =|= CI$: 73317,635 =|= AppleLink: CHUQ [This is myself speaking. No company can control my thoughts.] This is....The Voice....of USENET....in special English. 1300UTC on 11525.