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 tutorialWhy 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
- Linux Boot Process
- Kernel & System Calls
- Memory & Virtual Memory
- Devices & I/O
- CPU Scheduling
- C for Systems Programming
Recommended on Operating Systems & Linux.
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.
- 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.
- Checkpoint 2Self-check
Interrupts
Done when: A timer-driven counter advances on screen and keypresses are echoed, without triple faults.
- 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.
- 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.
Step-by-step guides
Pick one in a language you know (tutorial languages: C, Rust). They open on the author’s site.
- Rust
Writing an OS in Rust(external site)
Rust on x86-64: the most complete and best maintained series; each post builds on the last.
- C
The little book about OS development(external site)
C on x86: short chapters from booting to user mode.
- C
How to create an OS from scratch(external site)
C and assembly: small lessons from the boot sector up.
- C
Learning operating system development using Linux kernel and Raspberry Pi(external site)
C on ARM (Raspberry Pi), following the Linux kernel's design.
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.