1
1
Fork 0

Switched FASM to NASM

If I'm gonna port a C compiler I might as well use and port NASM as it 
is more widely used anyway
This commit is contained in:
Lauren Toivanen 2023-06-23 23:10:06 +03:00
parent 5badddbada
commit e21e42d318
Signed by: jt
GPG key ID: 9151B109B73ECAD5
3 changed files with 17 additions and 19 deletions

View file

@ -3,7 +3,7 @@ clean:
-@rm build/*.o build/*.elf 2> /dev/null || true
build/start32.o: build/ src/start32.asm
fasm src/start32.asm build/start32.o
nasm -felf32 src/start32.asm -o build/start32.o
build/kernel-i386.elf: build/start32.o
tcc -m32 -nostdlib -Wl,-Ttext,0x100000 -o build/kernel-i386.elf src/*.c build/start32.o
image: build/kernel-i386.elf mount