Closed
Description
Memory management is pretty much a filler currently and consists of a large linear chunk of non-disposable memory.
Ref: std/assembly/heap.ts
API is:
- allocate_memory(size:
usize
):usize
Pretty much like C'smalloc
. - free_memory(ptr:
usize
):void
Pretty much like C'sfree
.
Requirements are, in this order:
- Should be correct
- Should be efficient
- Should be small
TLSF seems to be a viable candidate.
Useful resources: