delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/17/13:54:40

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Size of EXE
Date: Thu, 16 Jan 1997 16:06:07 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 44
Message-ID: <32DE43DF.446B@LSTM.Ruhr-UNI-Bochum.De>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970116131613 DOT 17153C-100000 AT is>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote:
> 
> On Wed, 15 Jan 1997, Jonathan Addleman wrote:
> 
> > After writing and compiling a few simple programs with DJGPP, I've
> > noticed that the EXE is rather large... 80k! I'm guessing that this is
> > due the the compiler attaching all of the libraries and/or headers
> > used.
> 
> Don't guess (your guess is wrong, btw), look it up in the docs.  The DJGPP
> FAQ list (available as v2/faq202b.zip from the same place you get DJGPP)
> explains the reasons for this apparent bloat and the ways to make it
> smaller in section 8.15 (for starters, add -s to the gcc command line and
> observe the program size being slashed considerably; but the FAQ has more
> to tell).

When will those guys complaining about the EXE size of a simple
program ever learn?
Check on DJ's sites for his CD-Burner software and find
(stripped) 
getcd.exe  : 44.036 Bytes,  a program to get the ISO 9660 image
                            of a data CD
getda.exe  : 45.572 Bytes,  a program to read Digital Audio
makecd.exe : 62.468 Bytes,  get it back onto CDR.

Those ones contain an ASPI library (!) and seem to be pretty reliable.
So who cares about 80 kB for Hello World?


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* Voice/Fax Box: +49 2561 91371 2056                        *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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