[unsigned] No, you can't address full address space in D

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 20 10:37:16 PST 2016


On Sat, 20 Feb 2016 18:07:59 +0000, Steven Schveighoffer wrote:

> On Saturday, 20 February 2016 at 17:21:42 UTC, Chris Wright wrote:
>>
>> That's still doomed to failure. You're not leaving space for the stack
>> (which has preallocated address space) or application binary (which is
>> memory mapped from the file and takes up address space). You're using
>> the garbage collector, which has to allocate its own internal data
>> structures somewhere.
> 
> Let's not forget that you need 18 exabytes of ram too.

Point. The GC uses calloc, which does happen to complain when I ask for 
vast amounts of memory. There are other ways of requesting address space, 
though, such as mmap(2).


More information about the Digitalmars-d mailing list