Mail Archives: djgpp/1997/01/11/02:33:40
Ray Ratelis wrote:
>
> What is the coomand-line parameter for outputting a memory map of my
> prog?
> I just compiled a seemingly tiny prog and the executable is over 100k!
> I want to know where all toe space is being used up.
There is a fair bit of overhead involved in compiling 32-bit programs.
A large part of the compiled code of small programs is taken up by the
DJGPP startup code, and by debugging information. See the DJGPP FAQ
(v2/faq202b.zip) section 8.15 for a precise explanation, and
instructions on how to reduce the compiled size.
BTW, if you use any <conio.h> functions in your code, that adds about
40k to the compiled size. Why? Because all the conio functions come in
one source module, so they all get linked in when you compile. Don't
fly off the handle - they are so interrelated that you can't easily
separate them.
Hope this helps!
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Call me for your free AOL disk! | http://www.cs.com/fighteer |
| Chain letters, work-at-home schemes, free long distance, etc., |
| are ILLEGAL! Keep the Internet litter-free... don't SPAM. |
---------------------------------------------------------------------
- Raw text -