Mail Archives: djgpp/1997/01/16/06:32:00
On Wed, 15 Jan 1997, Jonathan Addleman wrote:
> After writing and compiling a few simple programs with DJGPP, I've
> noticed that the EXE is rather large... 80k! I'm guessing that this is
> due the the compiler attaching all of the libraries and/or headers
> used.
Don't guess (your guess is wrong, btw), look it up in the docs. The DJGPP
FAQ list (available as v2/faq202b.zip from the same place you get DJGPP)
explains the reasons for this apparent bloat and the ways to make it
smaller in section 8.15 (for starters, add -s to the gcc command line and
observe the program size being slashed considerably; but the FAQ has more
to tell).
- Raw text -