Implement Heap allocation (#3)

* Implement Maloc

* Implement Dealloc

* Migrate to a struct based heap implementation
This commit is contained in:
Alexander Neuhäuser
2025-09-14 18:17:24 +02:00
committed by GitHub
parent 981a6cd65c
commit afe1128139
9 changed files with 265 additions and 71 deletions

10
link.ld
View File

@@ -27,9 +27,17 @@ SECTIONS {
KEEP(*(.vector_table))
}
.stack 0x8018000 : ALIGN(16)
.heap 0x8000000 : ALIGN(16)
{
__heap_start = .;
. += 0x10000; #10kB
__heap_end = .;
}
.stack : ALIGN(16)
{
__stack_start = .;
. += 0x10000; #10kB stack
__stack_end = .;
}