From b1640f63048e60c3289f81effd8930adc45d705a Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 13 Apr 2025 18:00:32 +0200 Subject: e820: reduce code size Run into 512 byte size limit with different version of the compiler. Try to reduce code size by not emitting instructions to save/restore the frame pointer (not really needed for this toy example). --- x86-bare-metal/mbr-e820/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86-bare-metal/mbr-e820/Makefile b/x86-bare-metal/mbr-e820/Makefile index 5dc465f..99ed9d8 100644 --- a/x86-bare-metal/mbr-e820/Makefile +++ b/x86-bare-metal/mbr-e820/Makefile @@ -1,6 +1,6 @@ O := BUILD -COMMON_FLAGS := -fno-unwind-tables -fno-strip -target x86-freestanding-code16 -O ReleaseSmall -mcpu=i386 +COMMON_FLAGS := -fno-unwind-tables -fno-strip -target x86-freestanding-code16 -O ReleaseSmall -mcpu=i386 -fomit-frame-pointer $(O)/boot: $(O)/boot.elf | check_ep dump_info objcopy -O binary $< $@ -- cgit v1.2.3