Free List Memory Visualizer

Lecture add-on for interactive free-list allocation and compaction behavior.

Allocate blocks into selected gaps, trigger allocation errors on insufficient hole size, remove blocks, and manually compact memory to demonstrate defragmentation.

Model Free-list allocator
Heap Size 128 units
Teaching Goal Fragmentation
Allocated Block
Free Hole (selectable)

Heap Map

Address range is shown left to right. Click any free segment to select where the next allocation should land.

0 127

Free List

Allocated Elements