delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/22/13:30:07

From: mdruiter AT cs DOT vu DOT nl (Ruiter de M)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: throw,catch,try problem
Date: 22 Jan 1997 11:27:06 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 20
Message-ID: <5c4tia$8ea@star.cs.vu.nl>
References: <5bgl7r$61k$1 AT nz12 DOT rz DOT uni-karlsruhe DOT de>
NNTP-Posting-Host: sloep63.cs.vu.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019