Continued debugging

Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
This commit is contained in:
Victor Olin 2023-02-16 16:23:35 +01:00
parent fb1e177130
commit 5157e6b41d
6 changed files with 95 additions and 57 deletions

View file

@ -13,25 +13,14 @@ TODO:
Potential algorithms:
- mark & sweep
- easy to implement
- slow
- mark & compact
- no memory fragmentation
- slow
- stop-copy algorithms (?)
- no memory fragmentation
- slow
- maybe good for FP langs?
## Type hierarchy
## Tests TODO
### Library linking
Compile the GC lib and a test separately, link them together
and evalutate the following:
- Heap class
- Holds all memory
- Resizeable array?
- Singleton instance
- exposes alloc
__builtin_frame_address(0)
__builtin_frame_address(1)
__builtin_return_address(0)
__builtin_return_address(1)
- Heap chunks
- size
- addr
- marked bit