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