Start thinking about heap allocation
authorLuke Lau <luke_lau@icloud.com>
Mon, 29 Jul 2019 09:20:58 +0000 (10:20 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 29 Jul 2019 09:20:58 +0000 (10:20 +0100)
abi.md

diff --git a/abi.md b/abi.md
index 5f09227ae56f2b21e31e7eca856a2e9917f60eec..0185ec03acc4803a0bcc45f710d19d2ab23e77e1 100644 (file)
--- a/abi.md
+++ b/abi.md
@@ -4,6 +4,13 @@ a heap is allocated at the start, and the address to the next free
 space on it is stored in `heap_start`. it needs to be
 updated/decremented whenever you put anything on the heap
 
+## todo
+- how should allocation be managed?
+make free blocks a doubly linked list. (how big is a block?)
+when allocating, use first free block, move up free pointer
+when freeing, do ???
+
+
 # closures
 
 * lambda: actual function containing the code