DMD producing huge binaries

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun May 22 14:40:07 PDT 2016


On 05/21/2016 06:27 PM, Anon wrote:
> On Saturday, 21 May 2016 at 20:50:56 UTC, Walter Bright wrote:
>> On 5/21/2016 1:49 PM, Walter Bright wrote:
>>> We already have a compressor in the compiler source for compressing
>>> names:
>>>
>>> https://github.com/dlang/dmd/blob/master/src/backend/compress.c
>>>
>>> A faster one would certainly be nice. Anyone game?
>>
>> Note how well it does:
>>
>> https://issues.dlang.org/show_bug.cgi?id=15831#c5
>
> The underlying symbols are still growing exponentially. Nobody has the
> RAM for that, regardless of what size the resultant binary is.
>
> Compressing the symbol names is a bandage. The compiler needs a new kidney.

My understanding is that the encoding "auto" return in the mangling 
makes any exponential growth disappear. Is that the case? -- Andrei


More information about the Digitalmars-d mailing list