delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/30/15:28:14

Date: Mon, 30 Aug 1999 10:24:54 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Volt9000 <volt9000 AT home DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Super-huge EXE files
In-Reply-To: <MPG.1233e01be3a3061898983b@news>
Message-ID: <Pine.SUN.3.91.990830102133.3558P-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 30 Aug 1999, Volt9000 wrote:

> I make a simple EXE file that just displays 'Hello, world' it's bloody 
> 293K! Why is it so big? I checked the FAQ and it suggested using the -s 
> switch when compiling. So I tried that but the file is still like 140K! 
> What gives? How can I make the file smaller?

I believe the FAQ explains all that, and then some.  I believe you  are 
compiling a C++ program; if so, 140K is about right for the minimal 
program: all those C++ classes bring a huge overhead.

Like the FAQ says:

	- the overhead is additive, so real-life programs still get the 
	  same 140K bloat;

	- in this age of cheap disks you shouldn't worry;

	- you can use the exe compressor mentioned in the FAQ if you do 
	  worry.

- Raw text -


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