How a computer really works, layer by layer.
Follow a single line of C down through assembly, machine code, micro-operations and buses to the logic gates and transistors that run it — and step through every one of them live.
- levels of abstraction
- 7
- levels of abstraction
- chapters planned
- 41
- chapters planned
- runnable examples
- 24
- runnable examples
- installs or sign-ups
- 0
- installs or sign-ups
The simulator
Stop imagining what the CPU does. Watch it.
A compiler, an emulator and a debugger that explain themselves — running entirely in your browser.
C → assembly, in your browser
A real compiler with types, pointers, structs and strings. Every assembly line maps back to the C that produced it.
cmp eax, 5 · 3 − 5 = −2 → jl taken
Every flag, every bit
The full RFLAGS register, what each instruction wrote or changed, and which conditional jump will be taken — and why.
The stack, labeled
Frames, locals, arguments, saved frame pointers and return addresses, named from your C source. Watch a buffer overflow smash one.
Inside the CPU
Fetch, decode, address calculation, bus reads and writes, ALU, write-back — each micro-operation animated on the system bus.
Seven levels
One line of code, seven levels deep
Every level is implemented by the one below it. Pick any level to zoom in.
Explore the levels- L0Programming languagesLive in the simulatorWhat you write: variables, functions, pointers — and what a compiler turns them into.
c = a + b; - L1Assembly languageLive in the simulatorOne line per instruction: registers, flags, jumps — the view debuggers and disassemblers give you.
add eax, ecx - L2Operating systemThe layer that turns one CPU into many processes: virtual memory, system calls, files.
syscall - L3Instruction set architectureThe contract between software and silicon: instruction formats, encodings, addressing modes.
01 C8 - L4MicroarchitectureLive in the simulatorHow one instruction becomes fetch, decode, execute: datapath, buses, caches and pipelines.
MAR ← rip · MEMR - L5Digital logicGates, adders, the ALU, flip-flops and memory cells — where 0 and 1 become arithmetic.
S = A ⊕ B ⊕ Cin - L6Devices & physicsThe bottom of the stack: transistors as switches, CMOS gates, and how chips are made.
NMOS · PMOS
Foundations
The number systems every level relies on.
Start at the top. Go as deep as you like.
No install, no account. Pick an example and press Step.
Open the simulator