Skip to content

An ambitious project to implement an operating system from scratch

Notifications You must be signed in to change notification settings

berkio3x/BarfiOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BarfiOS

An ambitious project to implement an operating system from scratch.

compiling kernel:

Compile the cpp files with -m32 to produce an 32 bit elf file.

g++ -I ./include/ -c kernel/kernel.cpp   -c arch/i386/tty.cpp -ffreestanding -fno-exceptions -fno-rtti -m32

Compile the boostraping assembly file.

nasm -f elf32 arch/i386/boot.S -o kasm.o

link the elfs produce by assembly & gcc compiler using a linker.

ld -m elf_i386 -T link.ld -o Bkernel kasm.o kernel.o tty.o

Run the image in qemu:

qemu-system-i386 -kernel Bkernel

enjoy!!

About

An ambitious project to implement an operating system from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published