Newsgroups: comp.os.msdos.djgpp From: tob AT world DOT std DOT com Subject: Re: Allegro optimization: Just wondering! Message-ID: Sender: tob AT world DOT std DOT com (Tom Breton) Reply-To: tob AT world DOT std DOT com Organization: BREnterprises References: <5ni9um$hta AT news DOT interlog DOT com> Date: Tue, 10 Jun 1997 16:32:21 GMT Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk gautam AT interlog DOT com (Gautam N. Lad) writes: > I was wondering, if I added various #ifdef / #endif for the various modules in > Allegro, would the Allegro+DJGPP compiled executables reduce in size, and > would the program speed up? Not if you're attempting what I think. Defining out portions of the header file does not make anything be linked in or not. If you got that idea from the source I just posted, which does something similar, that's not why I do it. I do it because allegro.h is a rather large header, and gcc (pre-memory-upgrade) used to spend about a minute just chugging thru that, so I reduced the compiler's workload by making sure it never saw declarations etc. for unused modules. Tom