What Happens to My Code

How computer work

Von Neumann Architecture and the Birth of Computers

In 1945, John von Neumann proposed a new computer design that would shape the architecture of nearly all modern computers. This design became known as the Von Neumann Architecture.

Von Neumann Architecture
Von Neumann Architecture highover

It consists of three main components:

Core Concepts

Instruction Cycle (Simplified)

byte[] memory = new byte[...];
int pc = 0;

while (running) {
  int instruction = memory[pc];
  pc += 1;
  decode_and_execute(instruction);
}

Analogy

Think of it like a kitchen:

Resources