Size of executable almost triples

Rakan Alhneiti rakan.alhneiti at nospam.gmail.com
Wed Jul 30 06:54:22 PDT 2008


Moritz Warning wrote:
> On Wed, 30 Jul 2008 02:11:27 -0400, Stefan wrote:
> 
>> Do you have a similar effect with Linux? You mentioned strip, what does
>> it exactly?
>>
> strip removes all debugging and symbol information from a binary.
> Afaik, you can't link the binary afterwards or debug it properly,
> but that's often no problem for release builds.
> 
> Anyway, it's not a workaround for the increased file size.

I ran into this problem earlier as i was developing IntelliD (which is 
not done yet!). The file size went up to 9 MB in size, i removed -g 
-debug symbols from my compilation command and i think it went down to 7 
or 8 MB. Using UPX i managed to get it size my files down to 2.5 MB 
which is good enough for a text-editor.



More information about the Digitalmars-d mailing list