From 2a4254606dce5b839c4379ba1a7c35d2761ebaca Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Mon, 29 Jul 2019 10:20:58 +0100 Subject: [PATCH] Start thinking about heap allocation --- abi.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abi.md b/abi.md index 5f09227..0185ec0 100644 --- 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 -- 2.30.2