Toolchain

Learning Map.

Five tools a program passes through, from the editor to the running program. None of them is a finished tool; this page is a map of what I want to learn. The visuals are illustrations, not real screenshots.

How They Fit

From Editor to Running Program

The language server helps while you type, the compiler and linker while you build, the debugger while you run.

Language ServerLSP
Compilercompiler
Linkerlinker
Build Systembuild
Debuggerdebugger
compiler

Compiler

Reads source code, checks it and translates it to machine code. Usually split into a front end, middle end and back end.

What I want to learn

  • How do the front, middle and back end split the work?
  • How are readable error messages produced?
  • How does incremental compilation avoid repeated work?
linker

Linker

Combines object files, resolves symbols and lays out the executable.

What I want to learn

  • How are symbols resolved?
  • How are relocations applied?
  • How is unused code stripped?
LSP

Language Server

Gives the editor completion, go to definition and live error messages.

What I want to learn

  • How do LSP messages work?
  • How does completion work on broken code?
  • How can it share code with the compiler?
debugger

Debugger

Lets you pause a program, step through it and inspect variables.

What I want to learn

  • How is a breakpoint set?
  • What does debug info (DWARF) carry?
  • How are Rust types shown in a readable way?
build

Build System

Tracks dependencies and rebuilds only what changed.

What I want to learn

  • How is a dependency graph built?
  • How do you tell what changed?
  • How do builds become reproducible?