How to stop DMD from exploding the executable file size?

H. S. Teoh hsteoh at qfbox.info
Wed Aug 31 00:01:42 UTC 2022


On Tue, Aug 30, 2022 at 11:09:55PM +0000, ryuukk_ via Digitalmars-d wrote:
> On Tuesday, 30 August 2022 at 23:05:16 UTC, H. S. Teoh wrote:
[...]
> > Which version of dmd are you using? I tried to compile the above
> > code with 2.098 (old git master) and the total executable size is
> > only 900KB.
> > 
> > I remember about a year or two ago there was a bug where dmd would
> > generate 1024 * 1024 store instructions to initialize the array, but
> > I just checked the disassembly, it's now a rep stos, which is very
> > small.
[...]
> dmd --version prints: `DMD32 D Compiler v2.100.1`
> 
> It's on Windows, maybe that problem is windows specific?

Possibly, Windows uses a different backend path (obviously). Try to look
at the disassembly to see if it's the abovementioned problem?


T

-- 
If blunt statements had a point, they wouldn't be blunt...


More information about the Digitalmars-d mailing list