Date: Mon, 30 Aug 1999 10:24:54 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Volt9000 cc: djgpp AT delorie DOT com Subject: Re: Super-huge EXE files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.