Mail Archives: djgpp/1999/08/30/15:28:14
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 -