Please read: <https://nim-lang.org/docs/mm.html>

Allocators can be changed too but the used GC must be compatible with it. Read 
lib/system/osalloc.nim for details. An allocator must implement this interface:
    
    
    proc osTryAllocPages(size: int): pointer
    proc osAllocPages(size: int): pointer
    proc osDeallocPages(p: pointer, size: int)
    
    
    Run

The returned values must be page aligned, a page is typically 4096 bytes.

Reply via email to