Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Practice build · Operating systems and the machine

Build your own Operating System

A small kernel that boots in QEMU, prints to the screen, handles interrupts and the keyboard, and manages memory with paging.

  • Advanced
  • About 40–80 h
  • 4 checkpoints
  • 4 tutorials · C, Rust

Pick a tutorial, then check yourself at each checkpoint. Work in any language you like.

Choose a tutorial

Why build it

Booting, interrupts, paging and system calls are abstractions every program relies on. A hobby kernel makes each one concrete, and debugging it teaches more about the machine than any other build here.

Before you start: Use an emulator (QEMU) and a cross-compiler; never test on the machine you work on.

You will be able to

  • Describe the boot path from firmware to your kernel's entry point.
  • Handle interrupts and drive simple devices such as the timer and keyboard.
  • Enable paging and allocate physical memory frames.
  • Explain how a system call moves from user mode into the kernel.

Skills it exercises

Recommended on Operating Systems & Linux.

Checkpoints

How you know you are there

Work in any language. Each checkpoint ends with something you can run or observe, so you can check it yourself.

  1. Checkpoint 1Self-check

    Boot and print

    Done when: The kernel boots in QEMU (through a bootloader or Multiboot) and prints a message to the screen or serial port.

  2. Checkpoint 2Self-check

    Interrupts

    Done when: A timer-driven counter advances on screen and keypresses are echoed, without triple faults.

  3. Checkpoint 3Self-check

    Memory

    Done when: Paging is enabled, a frame allocator hands out and reclaims pages, and a page fault prints a useful message instead of rebooting.

  4. Checkpoint 4Self-check

    Multitasking

    Done when: Two kernel tasks take turns on the timer interrupt, each printing its own counter.

Stretch goals

  • Switch to user mode and add one system call.
  • A simple file system on a RAM disk.
  • Port the kernel to RISC-V or ARM.
Follow a tutorial

Step-by-step guides

Pick one in a language you know (tutorial languages: C, Rust). They open on the author’s site.

Practice builds are self-paced: Tech Atlas does not track them or count them as evidence. To show a skill, take its knowledge check from the skill page.

Tutorials come from codecrafters-io/build-your-own-x (CC0, snapshot of 2026-07-14, commit aa17439; links checked on 2026-10-19). Each tutorial belongs to its author and keeps its own licence; Tech Atlas links to it and does not host it. Briefs, checkpoints and the mapping to skills are Tech Atlas editorial drafts.