From: phfr24 Date: Sun, 21 Jun 2026 16:17:56 +0000 (-0300) Subject: -Os X-Git-Url: https://git.wirehaze.ovh/stm32f411ceu6.git/commitdiff_plain/HEAD?ds=sidebyside;hp=ca2267d42b6d9e1c8b147aa7685ed91592bfd964 -Os --- diff --git a/Makefile b/Makefile index df8f758..eb4708a 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,12 @@ # 'N.s' is made automatically from 'N.S' by running the C # preprocessor, 'cpp'. The precise recipe is '$(CPP) $(CPPFLAGS)'. -# Preprocessor CPP := arm-none-eabi-cpp CPPFLAGS := -# Assembler AS := arm-none-eabi-as ASFLAGS := -# C Compiler CC := arm-none-eabi-gcc CFLAGS := -march=armv7e-m+fp \ -mtune=cortex-m4 \ @@ -39,18 +36,18 @@ CFLAGS := -march=armv7e-m+fp \ -Wstrict-prototypes \ -Wshadow \ -Wundef \ - -Wdouble-promotion + -Wdouble-promotion \ + -Os -# Linker LD := arm-none-eabi-ld LDFLAGS := -nostdlib LDLIBS := -# objcopy OC := arm-none-eabi-objcopy OCFLAGS := --output-target=binary -# Build +# --------------------------------------------------------------------------- # + objs := kernel.o lds := kernel.ld LDFLAGS += -T $(lds) @@ -58,7 +55,8 @@ LDFLAGS += -T $(lds) elf := kernel.elf bin := kernel.bin -# Targets +# --------------------------------------------------------------------------- # + all : $(bin) clean : diff --git a/notes.txt b/notes.txt deleted file mode 100644 index a6cd67e..0000000 --- a/notes.txt +++ /dev/null @@ -1 +0,0 @@ -[ ] test -Os / -Oz optimization flags