liveBook · Manning

Von Neumann model

As explained in Modern C, Third Edition

The von Neumann model is a computer architecture model with a processor, registers, linearly addressable memory containing programs and data, and a finite instruction set.

The von Neumann model describes a computer as a processing unit with hardware registers, linearly addressable main memory for programs and data, and a finite instruction set. Assembly languages express operations within this model. section 13.5

From a function to machine operations

In assembly, `movl $0, -16(%rbp)` stores zero at a memory location 16 bytes below the address held in the `%rbp` register. Labels identify program points such as function entry points and loop targets. section 13.5

Assembly dialects vary with the:

How Modern C, Third Edition covers it

How deep it goes
Defines the architecture and traces annotated instructions, while treating the concrete translation as a limited glimpse.
Examples
Uses annotated x86_64 GCC assembly for `fgoto`, including memory moves, labels, comparisons, jumps, and an optimized variant.
What you can do after
Evaluate how a simple C function becomes register and memory operations in one concrete machine model.
How it connects
Connects registers, main memory, instruction sets, assembly language, compilers, operating systems, and automatic storage duration.

Also explained in

Compare how 2 books explain von Neumann model →

Related concepts

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