Mail Archives: djgpp/2000/02/13/04:48:21
On Sat, 12 Feb 2000, Damian Yerrick wrote:
> On Fri, 11 Feb 2000 21:28:01 +0300, "Dmitry Shkarin"
> <dmitry DOT shkarin AT mtu-net DOT ru> wrote:
>
> > Hi, Damian!
> >>1. Each DJGPP program has a mini-extender built in that goes to 32-bit
> >>protected mode. This extender takes space.
> > Other compilers have extender code too.
>
> Extender that lives in some bloated DOS4GW.EXE file.
This extender thing is a non-issue: the one linked into DJGPP programs is
only 2K.
Also, if you count DOS4GW, you should for fairness count CWSDPMI as well.
The real bloat, after stripping the executable, comes from the DJGPP
library and the GNU C++ library. The former is larger than a typical DOS
library because it offers much more functionality (see the section
"Features" in the DJGPP Knowledge Base for details). I don't know much
about the C++ library, but I suspect that at least some of the compared
compilers don't support some of the latest C++ bells and whistles (e.g.,
Watcom 10.x is quite old.
Conclusion: don't write hello world programs with a C++ compiler, or if
you do, don't treat the executable size too seriously.
> Also, "optimized for speed" in DJGPP bloats programs because GCC makes
> programs run wicked fast by using all the dirty alignment tricks of
> the i?86 trade.
That's also a non-issue, mostly: the bloat due to this is less than 10%,
in my experience.
- Raw text -