RetOS is a hobby x86 operating system built from scratch using C and x86 Assembly. No libc. No hand-holding. GRUB, and raw VGA memory.
Built for learning OS development the hard (and fun) way.
- Boots using GRUB (BIOS)
- Custom 32-bit kernel
- VGA text mode driver
- Minimal
printfimplementation - Clean project structure
- Runs on QEMU
RetOS/ βββ boot/ β βββ grub/ β βββ grub.cfg βββ kernel/ β βββ boot.asm β βββ kernel.c β βββ printf.c β βββ printf.h βββ build/ # generated (ignored) βββ iso/ # generated (ignored) βββ README.md
nasmgcc(with multilib support)grub-pc-binxorrisoqemu-system-x86
nasm -f elf32 kernel/boot.asm -o build/boot.o
gcc -m32 -ffreestanding -c kernel/kernel.c -o build/kernel.o
gcc -m32 -ffreestanding -c kernel/printf.c -o build/printf.o
ld -m elf_i386 -T kernel/linker.ld -o build/kernel.bin \
build/boot.o build/kernel.o build/printf.o