home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13941 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!walter!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Lots of precompiling in ThC (Re: Help!  System error #28)
  5. Message-ID: <1992Aug13.154821.12112@hobbes.kzoo.edu>
  6. Organization: Kalamazoo College
  7. References: <D88-JWA.92Aug13162902@dront.nada.kth.se>
  8. Date: Thu, 13 Aug 1992 15:48:21 GMT
  9. Lines: 35
  10.  
  11. d88-jwa@dront.nada.kth.se (Jon W{tte) writes:
  12. >
  13. >    3) Open your "Mac #Includes.c" file in the MacIncludes folder
  14. >    4) Change #define SIMPLIFY_PROTOTYPES to 0
  15. >    5) While you're at it, turn on ALL of the header files,
  16. >       except for the few mentioned in the comment at the start
  17. >       of the file.
  18. >    6) Choose "Precompile"
  19. >    7) Save as MacHeaders, overwriting your previous MacHeaders.
  20. >
  21. >This trick will ... reduce the size of
  22. >your project file a lot. If you use the class library, why not include
  23. >those headers as well ? A class library project then becomes < 600K in
  24. >size !
  25.  
  26. Two reasons not to do this:
  27.  
  28. (1) Option-clicking on the title bar won't display header files that are
  29. also in a precompiled header.  This makes bouncing around source code a
  30. lot slower.
  31.  
  32. (2) Last I knew (ThC4, I think), the compiler took quite a while to chew
  33. through a huge precompiled header file.  While I'm sure it's faster to
  34. read a precompiled symbol than to parse it, huge precompiled files mean
  35. you prepend, to each file, a lot of code you don't need.  When I removed
  36. all the TCL files from my precompiled header, my compile speed doubled.
  37.  
  38. >If you don't do this, you're just stupid and ignorant and deserve to
  39. >be bitten by all the bugs that find you :-)
  40.  
  41. Maybe I should redirect the followup to alt.religion.computers?
  42. (I agree that not using strict prototyping is a little daffy, tho'.)
  43. -- 
  44.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  45.  "Oh shut up."                         - Dan "Maynard" Gannon, 28 July 1992
  46.