From: Luke Lau Date: Mon, 29 Jul 2019 09:20:58 +0000 (+0100) Subject: Start thinking about heap allocation X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=commitdiff_plain;h=2a4254606dce5b839c4379ba1a7c35d2761ebaca Start thinking about heap allocation --- 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