Skip to content

SpaciousCoder78/literaDOS

Repository files navigation

khardunglaDOS

Assembly C Linux macOS

A 32-bit x86 based Disk Operating System 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

32-bit x86 i686-elf Based Disk Operating System

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published