Date: Mon, 7 Jun 1999 09:22:22 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: stenstrup AT my-deja DOT com cc: djgpp AT delorie DOT com Subject: Re: Hello World and File size In-Reply-To: <7jeai0$27a$1@nnrp1.deja.com> 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 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.