Extra compiler flags for AMD64
All checks were successful
Build documentation / build-and-deploy (push) Successful in 49s

This commit is contained in:
2026-01-11 03:42:15 +01:00
parent 41a458b925
commit 5bf10c1218
2 changed files with 9 additions and 3 deletions

View File

@@ -4,7 +4,8 @@ cflags += --target=x86_64-pc-none-elf \
-mno-avx \ -mno-avx \
-mno-mmx \ -mno-mmx \
-mno-80387 \ -mno-80387 \
-mno-red-zone -mno-red-zone \
-mcmodel=large
ldflags += --target=x86_64-pc-none-elf \ ldflags += --target=x86_64-pc-none-elf \
-Wl,-zmax-page-size=0x1000 -Wl,-zmax-page-size=0x1000

View File

@@ -5,7 +5,9 @@ cflags += -nostdinc \
-std=c11 \ -std=c11 \
-pedantic \ -pedantic \
-Wall \ -Wall \
-Wextra -Wextra \
-ffunction-sections \
-fdata-sections
cflags += -isystem ../include cflags += -isystem ../include
@@ -13,4 +15,7 @@ ldflags += -ffreestanding \
-nostdlib \ -nostdlib \
-fno-builtin \ -fno-builtin \
-fuse-ld=lld \ -fuse-ld=lld \
-static -static \
-Wl,--gc-sections \
-Wl,--strip-all \
-flto