Still learning a lot about systems engineering. Currently I'm working on a memory allocator. This iteration of it has a both a bump allocator and a free_list to recycle space if it finds one that has been freed. Still have a lot to learn but it's been a fun struggle.
github.com/Tmimstv/allo...
Posts by
They say if you can’t build it, you don’t own it. 🦾
New milestone reached: created a Bump Allocator. 16-byte aligned, ASAN clean, and hitting NULL exactly where the OS says the page ends.
Building the foundation for high-performance systems. 🚀 #Netrunner #lowlevel #C
Built a custom Arena Allocator in C.
Bypassed malloc for mmap
Implemented 8-byte alignment via bit-masking
Verified the mapping in /proc/pid/maps
It’s still early but, memory management is starting to feel a lot less like magic. #CProgramming #SystemsProgramming #Coding
Learned some virtual memory basics! Built a tiny mmap playground that maps an anonymous private region, writes into each page, then munmaps it.
At the very least, I can point at a /proc/<pid>/maps entry and say: “that’s my allocator arena.”
Week 1 of writing a tiny allocator: struct layout/alignment/padding.
Confirmed w/ sizeof/alignof/offsetof that field order changes where padding lives (internal vs tail) but not necessarily total size.
Key rule: struct size rounds up to struct alignment so arrays stay aligned... still a bit lost