D compiler is eating all the memory when compiling and then out of memory!
dangbinghoo
dangbinghoo at gmail.com
Sat May 9 07:11:20 UTC 2020
On Saturday, 9 May 2020 at 04:13:33 UTC, kinke wrote:
> 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).
just tested, -lowmem doesn't help even with LDC version 1.18.0,
out of memory when linking again, but it seems it's working when
compiling.
>
>> Separate linking not implemented for LDC
>
> Has been fixed in the meantime (since dub bundled with LDC
> v1.18).
yes, dub bundled with ldc in V1.18 just linked successfully using
both dmd and ldc.
Thanks!
More information about the Digitalmars-d
mailing list