D compiler is eating all the memory when compiling and then out of memory!

kinke noone at nowhere.com
Sat May 9 04:13:33 UTC 2020


On Saturday, 9 May 2020 at 03:54:29 UTC, dangbinghoo wrote:
> we should at least compiles the program, we need to use memory 
> the OS gived to US, not just "out of memory" and then quit.

This is a well-known issue but also heavily depends on the 
compiled code (CTFE usage and recursive template instantiations 
etc.). -lowmem usually helps, but isn't supported with dub and 
DMD (but with LDC since v1.17).

> Separate linking not implemented for LDC

Has been fixed in the meantime (since dub bundled with LDC v1.18).


More information about the Digitalmars-d mailing list