home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15208 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

  1. Path: sparky!uunet!spool.mu.edu!wupost!emory!kd4nc!km4ba!alan
  2. From: alan@km4ba.uucp (Alan Barrow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: THINK C linker makes me sad
  5. Message-ID: <1992Sep09.054939.1042@km4ba.uucp>
  6. Date: 9 Sep 92 05:49:39 GMT
  7. References: <fdrny7c.howard@netcom.com> <1992Sep8.085120.24380@reed.edu>
  8. Distribution: usa
  9. Organization: km4ba's packet radio gateway
  10. Lines: 41
  11.  
  12. In <1992Sep8.085120.24380@reed.edu> bowman@reed.edu (Eric Bowman (bobo)) writes:
  13.  
  14. >In article <fdrny7c.howard@netcom.com> howard@netcom.com (Howard Berkey) writes:
  15. >>So I was writing this really small, simple app. (a mac version of xclock,
  16. >>just for fun.)  It was only 3k.  Then I added a call to sprintf().  It 
  17. >>exploded the program to 22k.
  18.  
  19. >I hate to break it to you, but it ain't the linker's fault.  printf is BIG.
  20. >In MPW C you can get rid of some of it if you don't do any floating point
  21. >conversions; I suspect you can do something similar with Think.
  22.  
  23. >Basically, using printf isn't such a great idea, IMO.  Sure, it's easy to
  24. >use, but I've found it better/smaller/faster in the long run to use
  25. >NumToString, etc.
  26.  
  27. Funny, this is something Modula 2 users have known for ages.... :-)
  28.  
  29. (Sez one who does 90% C, yet uses M2 for fun projects. I even see
  30. advantages to forth sometimes, yet rarely will admit that in public.)
  31.  
  32. The latest turboc (dos) seems to do a pretty good job of stripping
  33. to a function level. ( I challenged a guy one time, and the binary
  34. turned out smaller than I had expected.)
  35.  
  36. I have to mention shared libraries as well, as this is something that
  37. none of the PC users seem to be aware of. It makes lots of sense
  38. as used in the UNIX world. (Ex: since most apps use printf, why have 23
  39. versions in memory at once. Share them!!!)
  40.  
  41. I am not a mac programmer, though, so feel free to suprise me with 
  42. neat macthingies! I suspect I will end up with a powerbook soon, and 
  43. will want to play compiler on it.
  44.  
  45. See ya!
  46.  
  47.  
  48.  Alan Barrow  km4ba | I've seen things you people wouldn't believe. Attack
  49.  jab@               | ships on fire off the shoulder of Orion. I watched
  50.  hpuerca.atl.hp.com | C-beams glitter in the dark near the Tannhauser gate.
  51.  ..!gatech!kd4nc!   | All those moments will be lost in time -
  52.          km4ba!alan | like tears in rain. Time to die.          Roy Batty
  53.