3 ms·
Manual memory management is optional. IIRC some version of the D compiler was written assuming an infinite virtual address space (basically they just did not bo
by programmer_dude 4y ago
Manual memory management is optional. IIRC some version of the D compiler was written assuming an infinite virtual address space (basically they just did not bother calling free() ever)!
- melony 4y agoIs that why D is so prevalent among (some) quant shops?
- duped 4y agoThere's a chapter in the book dedicated to memory layout of programs that discusses program segments, paging, implementation of malloc/free, etc that is more or less required before getting to the assembler and codegen stages. Even if you can write a compiler assuming infinite memory that generates programs that also assume it, it would be a disservice to readers to ignore that for brevity. It's an important part of understanding how programs are created.