Generated binary size

Iain Buclaw ibuclaw at ubuntu.com
Fri Sep 13 08:24:24 PDT 2013


On 13 September 2013 14:42, Joseph Rushton Wakeling
<joseph.wakeling at webdrake.net> wrote:
> On 13/09/13 15:36, Joseph Rushton Wakeling wrote:
>>
>> Tried it.  It reduces 12 MB executables to 11 MB -- but if I manually
>> exclude
>> the module responsible for the big data, executable sizes fall to 2 MB.
>
>
> Sorry, I'm talking nonsense.  I managed to accidentally build using ldmd2,
> which was responsible for the small executable sizes.  The +10 MB executable
> size seems to be entirely down to gdc.
>

I expect this is because the phobos/druntime libraries shipped with
dmd are (a) without debugging symbols and (b) stripped.

If you were to strip libphobos after installing gdc, then you would
see a significant drop in size.

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list