Mail Archives: djgpp/2000/08/26/12:01:37
On Fri, 25 Aug 2000, Ingo Brueckl wrote:
> I was using djgpp 2.01 (with gpp2721b and bnu27b) for a project written in
> C++, which resulted in a binary of approx. (stripped) 177 KByte.
>
> Today I tried version 2.03 (with gpp2952b and bnu2951b) and got a binary size
> of (stripped) 271 KByte, which is a growth of more than 50% for the same
> sources!
>
> Does anyone know why the size increases that much?! What do I get for the
> extra 100 KByte?
1) If You are not using C++ exceptions and RTTI You can use compiler
options '-fno-rtti -fno-exceptions' (the default for gcc-2.95.2 is
-frtti -fexceptions). Try with and without that and see the difference.
But DON'T ask to make -fno-rtti -fno-exceptions the default (that
simply will not happen)
2) Of course You can also strip executables or use UPX to compress them
additionally (but this not a answer to question)
Andris
- Raw text -