heap/linker/main: set up a heap allocator
authorKit Rhett Aultman <kit@kitaultman.com>
Sun, 30 Jun 2024 16:38:01 +0000 (12:38 -0400)
committerKit Rhett Aultman <kit@kitaultman.com>
Sun, 30 Jun 2024 16:38:01 +0000 (12:38 -0400)
commit8956fb12f781532221c1f8c80e1b2c691c92ab8f
tree0950d8a8f93e607b54f063ef357839e49cdb9e99
parente88734ea3a7f8c4552627fca2d2d6139dcb84eba
heap/linker/main: set up a heap allocator

This commit sets up a heap allocator.  Again, I cannot sufficiently
stress the usefulness of Meyer Zinn for getting things this far, and
much of what I needed to know about getting linker symbols propagated
into Rust code comes from:
https://meyerzinn.tech/posts/2023/03/08/p1-printing-and-allocating/

Meyer steps through the process of setting up the linked list allocator.
However, there's a buddy list allocator that can be used as a drop-in
replacement, and since this is a more common allocator scheme, and since
doing my own thing means writing my own code and getting more familiar
with Rust, it seemed a divergence worth taking.
Cargo.lock
Cargo.toml
src/heap.rs [new file with mode: 0644]
src/linker.ld
src/main.rs