Mail Archives: djgpp/1997/05/22/07:02:19
Gal-on Broner wrote:
>
> I compile a 14k source using gxx and receive an 200k+ image. How
> can I reduce this to more normal sizes?
Examine section 8.15 of the DJGPP FAQ (v2/faq210b.zip) for starters.
Since you're compiling a C++ program, you should also note that the C++
libraries take up quite a bit of space themselves. Also, any static
structures you define in your code will be included as part of the
executable itself; using a 200K array increases your code by 200K. This
is a bug in the gcc compiler; to work around it, use dynamic structures
as much as possible.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -