On Thursday, November 05, 2015 02:38:01 Sebastiaan Koppe via 
Digitalmars-d-announce wrote:
> On Wednesday, 4 November 2015 at 17:52:23 UTC, Dmitry Olshansky
> wrote:
> > If host machine is x64 bit windows try setting large address
> > aware bit on the executable (there are tools to do that IRC),
> > would allow it to eat up to ~4 gigs.
> What can we do when it eats up all 4 gigs? (Windows)

With any program, if you're hitting the limit of the 32-bit address space
(which is actually more like 3.6 GiB than 4), then you really only have two
options - use less memory or go to 64-bit. In the case of dmd specifically,
that means either reducing how much memory dmd consumes (which would mean
improvements to the dmd codebase), have a 64-bit build of dmd (I have no
idea what's involved with that, though it sounds like it's been done
before), or you have to build your program in separate pieces that each
require a low enough amount of memory when compiling that they don't run out
of memory. Phobos has been built in pieces for quite a while now
specifically because it requires too much memory to build it all at once
(std.algorithm alone requires a lot of memory thanks to all of the template
instantiations in its unit tests).

- Jonathan M Davis

Reply via email to