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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!unlinfo.unl.edu!news
  3. From: mgleason@cse.unl.edu (Mike Gleason)
  4. Subject: Re: THINK C linker makes me sad
  5. Message-ID: <1992Sep9.044144.1221@unlinfo.unl.edu>
  6. Sender: news@unlinfo.unl.edu
  7. Nntp-Posting-Host: cse.unl.edu
  8. Organization: NCEMRSoft
  9. References: <fdrny7c.howard@netcom.com> <Bu9C1M.8Mw@world.std.com>
  10. Distribution: usa
  11. Date: Wed, 9 Sep 1992 04:41:44 GMT
  12. Lines: 30
  13.  
  14. siegel@world.std.com (Rich Siegel) writes:
  15.  
  16. >In article <fdrny7c.howard@netcom.com> howard@netcom.com (Howard Berkey) writes:
  17. >>So I was writing this really small, simple app. (a mac version of xclock,
  18. >>just for fun.)  It was only 3k.  Then I added a call to sprintf().  It 
  19. >>exploded the program to 22k.
  20. >>
  21. >>Please, no flames for this... I LOVE the THINK C environment, and I know
  22. >>that the 'open letter to symmantec' thread was months ago, but I do REALLY
  23. >>WISH that the THINK C linker (or loader) would recognize discrete blocks of 
  24. >>code at the function (rather than file) level.  
  25.  
  26. >So use ANSI-small instead of ANSI. When you use ANSI, you drag along the
  27. >entire console package and floating-point support for printf() and its
  28. >relatives. Smart-linking can't prune away code in situations like this.
  29. >If you use ANSI-small, you'll save about half that 22K.
  30.  
  31. Still, I would like to see Think C's smart-linker be even smarter and prune
  32. at the function level rather than the file level.  It would be nice to
  33. be able to use a standardized Utilities source file or library without
  34. having to manually #if 0 unused functions for different projects.
  35.  
  36. On the other hand, I think it's about time that some oft-used functions
  37. were incorporated into ROM/System file.  I nominate sprintf, sscanf,
  38. pStrcpy, pStrcat, str{cpy, cat, cmp}, and BlockZero to become part of
  39. the Toolbox Utilities.
  40.  
  41. --
  42. ______________________________________________________________________________
  43. mike gleason                 mgleason@cse.unl.edu             NCEMRSoft, baby!
  44.