Skip to content

SpaciousCoder78/ladakh-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ladakh-kernel

Assembly C Linux macOS

A 32-bit x86 based Kernel for khardunglaDOS based on i686-elf architecture

Supported Operating Systems for Building:

macOS Linux

Installing

  • Build and Install GCC and binutils for i686-elf from this guide: https://wiki.osdev.org/GCC_Cross-Compiler
  • Clone this repository
    $ git clone https://github.com/SpaciousCoder78/ladakh-kernel.git
  • Assemble boot.s
    $ i686-elf-as boot/boot.s -o boot.o
  • Compile kernel.c
    $ i686-elf-gcc -c kernel/kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
  • Link kernel and bootstrap using linker.ld
    $ i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
  • sd

About

A 32-bit x86 based Kernel for khardunglaDOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published