Mail Archives: djgpp/1997/01/22/13:30:07
Matthias Baas (un1t AT rz DOT uni-karlsruhe DOT de) wrote:
I don't know anything about exceptions, but...
: PS: Looking at the file sizes of the DOS- and Linux executables of
: the above program made me a bit uneasy. I stripped both files,
: but while the Linux file shrinked to a handsome 5KB file, the
: DOS executable still needs about 100KB !
: Is there a reasonable explanation for this?
DOS requires almost the whole iostream-library to be linked in. Linux
can use dynamic linked libraries I think, plus the DJGPP-startup code
needs to handle things like loading the DPMI-provider, parsing DJGPP.ENV,
set up argc/argv, etc... Try compiling a REAL program. The difference in
size will turn out te be constant. Most (all?) of this is in the FAQ.
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
\----/==\----/
\ / \ / "Life is cool.", Beavis.
\/ \/
- Raw text -