Mail Archives: djgpp/1997/06/11/03:32:14
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
- Raw text -