How nibblebits/peachos works
Project type and purpose
• This is a teaching-oriented, from‐scratch, monolithic operating system kernel with userland support (a small shell and standard library). It covers the full boot process (real mode → protected mode), low-level drivers (disk, keyboard), filesystem (FAT16 + VFS), memory management (paging + heap), interrupt handling, ELF loader, and a simple multitasking kernel with a syscall interface for userland programs.
File structure
• Top‐level build artifacts and scripts: Makefile, build.sh, build/, bin/, programs/, src/
• src/boot, src/gdt, src/idt, src/loader, src/memory, src/task, src/isr80h, etc. → kernel subsystems
• src/fs + src/disk → storage and filesystem layers
• programs/ → userland applications (blank, shell) and the accompanying embedded standard library
• Configuration and linker scripts (src/linker.ld, programs/*/linker.ld) define memory layout for kernel and user programs.
README for additional insights
• Course is structured in “Real Mode” and “Protected Mode” sections, so the bootloader and protected‐mode kernel are two distinct stages.
• Kernel features: FAT16 implementation, virtual filesystem inspired by Linux, ELF loader, process/task management, etc.
Detail is essential
• Every major .c/.asm directory as its own block in the kernel core
• Build inputs and outputs (linker scripts → binary images in bin/)