# tuhdo/os01 architecture

> Architecture diagram of the GitHub repository tuhdo/os01, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tuhdo/os01
- Repository: https://github.com/tuhdo/os01

## Overview

This repository is an educational book, not an OS runtime: its main workflow is for a reader to study computer-system foundations and low-level programming, then apply that knowledge to bare-metal OS work. The README documents the book’s major topics and the chapter 7–8 code examples, but the only sampled source is an empty chapter 8 main function; relationships involving the examples are therefore not inferred.

Main entry points: [`book_src/Operating Systems From 0 to 1.txt`](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt) (OS Book), [`code/chapter7/os/bootloader/bootloader.asm`](https://github.com/tuhdo/os01/blob/master/code/chapter7/os/bootloader/bootloader.asm) (Bootloader Example), [`code/chapter8/os/os/main.c`](https://github.com/tuhdo/os01/blob/master/code/chapter8/os/os/main.c) (Kernel Example)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["System Foundations"]
  node_book["OS Book"]
  node_hardware["Hardware Concepts"]
  node_system_layers["System Layers"]
end

subgraph group_programming["Low-Level Programming"]
  node_linux_tools["Linux Tools"]
  node_x86_assembly["x86 Assembly"]
  node_program_structure["Program Structure"]
  node_elf["ELF Format"]
  node_link_load["Linking and Loading"]
  node_debugging["Bare-Metal Debugging"]
end

subgraph group_examples["OS Examples"]
  node_bootloader["Bootloader Example<br/>[bootloader.asm]"]
  node_kernel_example["Kernel Example<br/>[main.c]"]
end

node_reader(("Reader"))
node_intel_manual["Intel Manuals"]
node_gdb_qemu["GDB and QEMU"]

node_reader -->|"studies"| node_book
node_book -->|"teaches"| node_hardware
node_book -->|"explains"| node_system_layers
node_book -->|"teaches"| node_linux_tools
node_book -->|"teaches"| node_x86_assembly
node_book -->|"explains"| node_program_structure
node_book -->|"teaches"| node_elf
node_book -->|"teaches"| node_link_load
node_book -->|"teaches"| node_debugging
node_intel_manual -->|"informs"| node_book
node_book -->|"teaches use"| node_gdb_qemu
node_book -.->|"includes examples"| node_bootloader
node_book -.->|"includes examples"| node_kernel_example

click node_book "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_hardware "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_system_layers "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_linux_tools "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_x86_assembly "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_program_structure "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_elf "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_link_load "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_debugging "https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt"
click node_bootloader "https://github.com/tuhdo/os01/blob/master/code/chapter7/os/bootloader/bootloader.asm"
click node_kernel_example "https://github.com/tuhdo/os01/blob/master/code/chapter8/os/os/main.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_book,node_hardware,node_system_layers toneBlue
class node_linux_tools,node_x86_assembly,node_program_structure,node_elf,node_link_load,node_debugging toneAmber
class node_bootloader,node_kernel_example toneMint
class node_reader,node_intel_manual,node_gdb_qemu toneIndigo
```

## Components

### System Foundations

- [OS Book](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [Hardware Concepts](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [System Layers](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`

### Low-Level Programming

- [Linux Tools](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [x86 Assembly](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [Program Structure](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [ELF Format](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [Linking and Loading](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`
- [Bare-Metal Debugging](https://github.com/tuhdo/os01/blob/master/book_src/Operating%20Systems%20From%200%20to%201.txt): `book_src/Operating Systems From 0 to 1.txt`

### OS Examples

- [Bootloader Example](https://github.com/tuhdo/os01/blob/master/code/chapter7/os/bootloader/bootloader.asm): `code/chapter7/os/bootloader/bootloader.asm`
- [Kernel Example](https://github.com/tuhdo/os01/blob/master/code/chapter8/os/os/main.c): `code/chapter8/os/os/main.c`

### Other components

- **Reader**
- **Intel Manuals**
- **GDB and QEMU**

## Connections

- Reader → OS Book: studies (evidence: `README.md`)
- OS Book → Hardware Concepts: teaches (evidence: `README.md`)
- OS Book → System Layers: explains (evidence: `README.md`)
- OS Book → Linux Tools: teaches (evidence: `README.md`)
- OS Book → x86 Assembly: teaches (evidence: `README.md`)
- OS Book → Program Structure: explains (evidence: `README.md`)
- OS Book → ELF Format: teaches (evidence: `README.md`)
- OS Book → Linking and Loading: teaches (evidence: `README.md`)
- OS Book → Bare-Metal Debugging: teaches (evidence: `README.md`)
- Intel Manuals → OS Book: informs (evidence: `README.md`)
- OS Book → GDB and QEMU: teaches use (evidence: `README.md`)
- OS Book → Bootloader Example: includes examples
- OS Book → Kernel Example: includes examples
