mkos32/start.sh

5 lines
264 B
Bash
Raw Normal View History

2023-10-13 07:30:58 +00:00
#!/bin/bash
../Kompilator/cross/bin/i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
../Kompilator/cross/bin/i686-elf-gcc -T linker.ld -o mkos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
qemu-system-i386 -kernel mkos.bin