home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- 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
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Subject: Lots of precompiling in ThC (Re: Help! System error #28)
- Message-ID: <1992Aug13.154821.12112@hobbes.kzoo.edu>
- Organization: Kalamazoo College
- References: <D88-JWA.92Aug13162902@dront.nada.kth.se>
- Date: Thu, 13 Aug 1992 15:48:21 GMT
- Lines: 35
-
- d88-jwa@dront.nada.kth.se (Jon W{tte) writes:
- >
- > 3) Open your "Mac #Includes.c" file in the MacIncludes folder
- > 4) Change #define SIMPLIFY_PROTOTYPES to 0
- > 5) While you're at it, turn on ALL of the header files,
- > except for the few mentioned in the comment at the start
- > of the file.
- > 6) Choose "Precompile"
- > 7) Save as MacHeaders, overwriting your previous MacHeaders.
- >
- >This trick will ... reduce the size of
- >your project file a lot. If you use the class library, why not include
- >those headers as well ? A class library project then becomes < 600K in
- >size !
-
- Two reasons not to do this:
-
- (1) Option-clicking on the title bar won't display header files that are
- also in a precompiled header. This makes bouncing around source code a
- lot slower.
-
- (2) Last I knew (ThC4, I think), the compiler took quite a while to chew
- through a huge precompiled header file. While I'm sure it's faster to
- read a precompiled symbol than to parse it, huge precompiled files mean
- you prepend, to each file, a lot of code you don't need. When I removed
- all the TCL files from my precompiled header, my compile speed doubled.
-
- >If you don't do this, you're just stupid and ignorant and deserve to
- >be bitten by all the bugs that find you :-)
-
- Maybe I should redirect the followup to alt.religion.computers?
- (I agree that not using strict prototyping is a little daffy, tho'.)
- --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- "Oh shut up." - Dan "Maynard" Gannon, 28 July 1992
-