When data size is unknown, heap memory provides storage beyond the limited stack. A program can request it from the operating system through system calls. section 3.1.2
An allocator manages memory blocks through a common interface. After using a block, free it so the allocator can reuse it. Zig makes allocation explicit; in C and most languages, a runtime allocator usually handles heap operations. section 3.1.2
Figure 3.1 Memory as seen by a process
Shows memory from a process’s perspective. section 3.1.2










