home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15134 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!world!siegel
  3. From: siegel@world.std.com (Rich Siegel)
  4. Subject: Re: THINK C linker makes me sad
  5. Message-ID: <Bu9C1M.8Mw@world.std.com>
  6. Organization: GCC Technologies
  7. References: <fdrny7c.howard@netcom.com>
  8. Distribution: usa
  9. Date: Tue, 8 Sep 1992 11:32:10 GMT
  10. Lines: 23
  11.  
  12. In article <fdrny7c.howard@netcom.com> howard@netcom.com (Howard Berkey) writes:
  13. >So I was writing this really small, simple app. (a mac version of xclock,
  14. >just for fun.)  It was only 3k.  Then I added a call to sprintf().  It 
  15. >exploded the program to 22k.
  16. >
  17. >Please, no flames for this... I LOVE the THINK C environment, and I know
  18. >that the 'open letter to symmantec' thread was months ago, but I do REALLY
  19. >WISH that the THINK C linker (or loader) would recognize discrete blocks of 
  20. >code at the function (rather than file) level.  
  21.  
  22. So use ANSI-small instead of ANSI. When you use ANSI, you drag along the
  23. entire console package and floating-point support for printf() and its
  24. relatives. Smart-linking can't prune away code in situations like this.
  25. If you use ANSI-small, you'll save about half that 22K.
  26.  
  27. R.
  28.  
  29.  
  30. -- 
  31. -----------------------------------------------------------------------
  32. Rich Siegel                              Internet: siegel@world.std.com
  33. Software Engineer & Toolsmith
  34. GCC Technologies
  35.