liveBook · Manning

Memory

As explained in Modern C

Main memory is the linearly addressable storage that holds a running program's instructions and data.

Memory is the linearly addressable storage that holds a running program's instructions and data. In the von Neumann model, it works alongside hardware registers and a finite instruction set. section 13.5

From C storage to memory locations

Assembler makes storage concrete: a generated instruction can store 0 at a location below the base pointer, while another loads a value from a memory address held in a register. This connects automatic storage duration with stack-based memory locations without treating C variables as merely abstract names. section 13.5

How Modern C covers it

How deep it goes
Defines linear addressing and illustrates storage realization through assembler, but defers broader architectural detail.
Examples
Uses x86_64 assembler instructions that adjust the stack and load or store values at register-relative memory locations.
What it assumes
Assumes familiarity with C code while allowing readers to approach the machine model without prior assembler knowledge.
What you can do after
Evaluate how a simple C function's variables and operations correspond to registers and memory locations.
How it connects
Connects memory with the von Neumann model, hardware registers, assembler, automatic storage duration, and stack pointers.

Also explained in

Compare how 14 books explain memory →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Modern C. The section links point to the parts of the book it draws on.