64 bit support

This commit is contained in:
nub31
2025-08-24 18:29:02 +02:00
parent ff664b0687
commit 1402a227f1
4 changed files with 182 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
CC = i386-elf-gcc
LD = i386-elf-ld
CC = x86_64-elf-gcc
LD = x86_64-elf-ld
CFLAGS = -m32 -ffreestanding -fno-builtin -Wall -Wextra -Werror -Wshadow -std=c23
LDFLAGS = -m elf_i386
CFLAGS = -m64 -ffreestanding -fno-builtin -Wall -Wextra -Werror -Wshadow -std=c23
LDFLAGS =
all: .build/nub-os.iso
@@ -28,4 +28,4 @@ build-dir:
$(CC) $(CFLAGS) -c -o .build/vga.o src/vga.c
.build/boot.o: build-dir src/boot.asm
nasm -f elf32 -o .build/boot.o src/boot.asm
nasm -f elf64 -o .build/boot.o src/boot.asm