cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/10:35:18

From: "Igor I. Tovstopyat-Nelip" <itovsto AT emory DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hello World and File size
Date: Tue, 8 Jun 1999 09:56:17 -0400
Organization: Emory University
Lines: 39
Message-ID: <Pine.GSO.4.05.9906080942210.16571-100000@paladin.cc.emory.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990607092153 DOT 18114D-100000 AT is>
NNTP-Posting-Host: paladin.cc.emory.edu
Mime-Version: 1.0
X-Trace: lendl.cc.emory.edu 928850178 19339 170.140.1.29 (8 Jun 1999 13:56:18 GMT)
X-Complaints-To: abuse AT emory DOT edu
NNTP-Posting-Date: 8 Jun 1999 13:56:18 GMT
X-Sender: itovsto AT paladin DOT cc DOT emory DOT edu
In-Reply-To: <Pine.SUN.3.91.990607092153.18114D-100000@is>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I've just tried it for the first time and immediately come up with the
same question. C and C++ "hello" programs after compiling with djgpp have
sizes 105 K and 287 K correspondingly. On the other hand when compiled
with MS Visual C++ compiler their sizes are 28 k and 36 K. 

Are you sure that this big difference really goes away for large real-life
programs?

Thank you.

	Igor.

On Mon, 7 Jun 1999, Eli Zaretskii wrote:

> 
> On Sun, 6 Jun 1999 stenstrup AT my-deja DOT com wrote:
> 
> > Compiling the source file with gxx -o in the DOS prompt produces
> > an EXE-file of 287.456 bytes. Using the -s option or Strip command
> > reduces the EXE-file to 139.776 bytes. These sizes are much higher than
> > the 80 kb referred to in the FAQ so what am I missing?
> 
> The FAQ cites the size of a C program, not a C++ program.  I
> understand that you wrote the program in C++ and compiled it with gxx,
> which produces a much larger image due to the larger C++ libraries.
> 
> > Is there a way to reduce the file size or is it just the way it all
> > works?
> 
> Why do you even care?  Who cares how much bytes does a trivial hello
> world program take on your disk?  The overhead is mostly additive, so
> real-life programs get bloated much less, relative to their size.
> 
> If you MUST make it smaller, see the rest of section 8.13 which
> explains, among other things, that there's a DJGPP-compatible
> compressor of executable programs.
> 
> 

- Raw text -


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