tagged #memory

Writing a toy allocator in 200 lines of C

It looks trivial from a distance — bump a pointer, hand back the bytes. Up close it is all alignment, fragmentation, and the cost you only see once you measure.

2 min