Mail Archives: djgpp/1997/09/17/05:55:04
Come on, guys and gals! If you want to post info that is already
beaten to death in the DJGPP FAQ list, fine. But at least make a
point of telling it correctly, instead of getting it all wrong and
confusing the confused even more.
The truth is neither the debugging info nor the so-called ``DOS
extender'' (what's that? I thought DJGPP is an extender-less
environment) have anything to do with this problem. Just add -s
switch to the gcc command line and watch your exe size get smaller by
large factors. (The FAQ has a few additional tricks up its sleave.)
> keep in mind i just started to program
Since you have just begun to use DJGPP, I suggest to look in the DJGPP
FAQ list whenever you have any problems. That way, you get answers to
many problems quickly and efficiently. The latest version of the FAQ
is available as v2/faq210b.zip from the same place you get DJGPP.
On 16 Sep 1997, `Lord_RaT~ wrote:
> i have been noticing that djgpp makes really big .exe's
and got these responses:
from Brett Porter <bporter AT rabble DOT uow DOT edu DOT au>:
Brett> You are not doing anything wrong, but DJGPP needs to put a
Brett> loader at the front of the program. It isn't that big,
Brett> really. If you try adding another two lines like the ones
Brett> above, it will not become 160K, probably 81K.
Brett>
Brett> If you are _really_ desperate for space...
Brett> 1) Compile without debugging information (just don't make any
Brett> mistakes :)
Brett> 2) Use the executable compressor (found on SimTel where you got
Brett> DJGPP from)
from mhkrause AT umich DOT edu (Michael Krause)
Michael> That's cause DJGPP is linking in the entire DOS extender and
Michael> probably some debugging information. Run DJP Progname.exe.
Michael> This will strip the debugging information and compress the
Michael> executable. This will bring the size down to 23k.
- Raw text -