home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14928 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.9 KB  |  51 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!petrus
  3. From: petrus@stacken.kth.se (Lars Petrus)
  4. Subject: Re: Can TCL project size be reduced using precompiled headers?
  5. Message-ID: <1992Sep3.101056.1316@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: alex.stacken.kth.se
  8. Organization: Stacken Computer Club, Stockholm, Sweden
  9. References: <de19-020992173616@zben-mac-ii.umd.edu> <1992Sep3.004012.27044@cs.uoregon.edu>
  10. Date: Thu, 3 Sep 1992 10:10:56 GMT
  11. Lines: 38
  12.  
  13. In article mkelly@sisters.cs.uoregon.edu (Michael A. Kelly) writes:
  14. >In article de19@umail.umd.edu (Dan Emery) writes:
  15. >>Is it possible to reduce the size of a TCP project file by using
  16. >>the "precompiled header" feature?  If so, could some kind soul
  17. >>email or post a description of the strategy one would use.
  18. >>
  19. >
  20. >I'll add this to the next version of the FAQ.
  21. >
  22. >The answer is yes.  You just add your TCL headers to Mac #includes.c and
  23. >Precompile.  Presumeably you would want to make a separate file, called
  24. >something like "Traps+TCL Headers".
  25.  
  26.  
  27.    There is a nasty trap in this. If you precompile your headers using
  28. "Generate 68881 instructions", and then use them in a project which do
  29. not use 68881 your program will work perfectly on your machine (which
  30. has a 68881), but will crash on a machine without 68881.
  31.  
  32.    This caused our biggest panic to date (it was The Important Possible
  33. Customer who had the FPU-less mac), and took two days and one night to
  34. figure out.
  35.  
  36.  
  37.  
  38.    Precompiling headers is the first thing to do to reduce project size.
  39. It chopped 75% of mine. If you are still not satisfied, you can turn of
  40. debugging on files where you don't think you need it. That's the grey
  41. dot to the left of file name.
  42.  
  43.  
  44.  
  45.   -  -  -  -
  46. Wise Quote: "You want to know how to paint a perfect painting? It's easy. 
  47. Make yourself perfect and then just paint naturally. That's the way all the 
  48. experts do it." - Robert M Pirsig in ZATAOMM.
  49.  
  50. Lars Petrus, Solna, Sweden  -  petrus@stacken.kth.se
  51.