www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/12/13:33:56

Xref: news2.mv.net comp.os.msdos.djgpp:4882
From: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why are they so fat?
Date: 10 Jun 1996 23:26:38 GMT
Organization: Technische Hochschule Darmstadt
Lines: 39
Message-ID: <4piave$11hn@rs18.hrz.th-darmstadt.de>
References: <283F86A3F3E AT fs2 DOT mt DOT umist DOT ac DOT uk>
NNTP-Posting-Host: fb0408.mathematik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

A.Appleyard (A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk) wrote:
: On 7 Jun 1996, Martin Krieger wrote:
: > `#include <iostream.h> / int main() {cout << "Hallo, Welt!\n";}' compiles to
: > `TEST.EXE 158.101 07.06.96 23:21' Why is this nice little program so
: > extremly huge? Is there a way to shrink it? (Any plans for optimizing
: > linkers like that one Borland Pascal has?)

: Eli Zaretskii wrote:
: > Are you *really* interested in the size of a toy program like that?  Most of
: > the overhead ... stays almost constant for much larger programs. ...

: fredex AT fcshome DOT stoneham DOT ma DOT us wrote:-
: > While toy programs are vastly larger than the same thing compiled with
: > TC/BC/MSC, a real program of significant size tends not to be. ...

: The extra bulk that Martin Krieger complains of, is NOT insignificant for a
: user who has to keep a lot of compiled djgpp .EXE's. In a nearly full disk,
: such extra bits of store usage per file add up.

Well, install Linux, first of all it has shared libraries, 2nd is has
a sane filesystem, which means that you are wasting less space on
half-used clusters. And it runs DOOM, not much more to ask for is there.

A bit more serious, the reason why djgpp programs have more overhead
is probably among other things that is has a very versatile wildcard
matching (I'd like to see a MSC program to implement something like
{src,include}/*.[ch], that would also take up space) and protected
more runtime support which means less headache when writing programs.
The obvious solution for this would be shared libraries which are not
feasible for a couple of reasons discussed at length in the past.


bye, Alexander

--
Alexander Lehmann,                                  |  "On the Internet,
alex AT hal DOT rhein-main DOT de  (plain, MIME, NeXT)         |   nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain)          |   you're a dog."
!!CHANGED!! <URL:http://www.mathematik.th-darmstadt.de/~lehmann/>

- Raw text -


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