DMD1 binaries a lot bigger than DMD2 due to weird zero blocks?

Don nospam at nospam.com
Thu Aug 5 03:54:27 PDT 2010


Vladimir Panteleev wrote:
> On Thu, 05 Aug 2010 10:06:55 +0300, Don <nospam at nospam.com> wrote:
> 
>> It _might_ be caused by bug 1914, which was fixed in D2, but the patch 
>> was not applied to D1. An n-element array literal gets stored n times 
>> in the exe...
> 
> Applying your patch against DMD 1.062's source code does not resolve the 
> issue. The generated binaries remain identical before and after the 
> patch. (Are you sure that's the right bug? 1914 seems to only affect 
> arrays inside structs, no?)
> 
It was just a guess. I created test cases for that bug which increased 
exe size by several megabytes. Sounds like you're seeing something else.


More information about the Digitalmars-d mailing list