X-Git-Url: http://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=abi.md;h=0185ec03acc4803a0bcc45f710d19d2ab23e77e1;hp=5f09227ae56f2b21e31e7eca856a2e9917f60eec;hb=2a4254606dce5b839c4379ba1a7c35d2761ebaca;hpb=8519507b78d723100bca15fe0332ff99890e77fa 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