]> wirehaze git hosting - stm32f411ceu6.git/commitdiff

wirehaze git hosting

-Os main
authorphfr24 <phfr24@inf.ufpr.br>
Sun, 21 Jun 2026 16:17:56 +0000 (13:17 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Sun, 21 Jun 2026 16:17:56 +0000 (13:17 -0300)
Makefile
notes.txt [deleted file]

index df8f7583b68fb14e5bb6d0359a93144026f01db5..eb4708a76161659f67a470445584c4c1f2bf4dd5 100644 (file)
--- a/Makefile
+++ b/Makefile
 #      'N.s' is made automatically from 'N.S' by running the C
 #      preprocessor, 'cpp'.  The precise recipe is '$(CPP) $(CPPFLAGS)'.
 
 #      '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 :=
 
 CPP := arm-none-eabi-cpp
 CPPFLAGS :=
 
-# Assembler
 AS := arm-none-eabi-as
 ASFLAGS :=
 
 AS := arm-none-eabi-as
 ASFLAGS :=
 
-# C Compiler
 CC := arm-none-eabi-gcc
 CFLAGS := -march=armv7e-m+fp \
                                        -mtune=cortex-m4 \
 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 \
                                        -Wstrict-prototypes \
                                        -Wshadow \
                                        -Wundef \
-                                       -Wdouble-promotion
+                                       -Wdouble-promotion \
+                                       -Os
 
 
-# Linker
 LD := arm-none-eabi-ld
 LDFLAGS := -nostdlib
 LDLIBS :=
 
 LD := arm-none-eabi-ld
 LDFLAGS := -nostdlib
 LDLIBS :=
 
-# objcopy
 OC := arm-none-eabi-objcopy
 OCFLAGS := --output-target=binary
 
 OC := arm-none-eabi-objcopy
 OCFLAGS := --output-target=binary
 
-# Build
+#  ---------------------------------------------------------------------------  #
+
 objs := kernel.o
 lds := kernel.ld
 LDFLAGS += -T $(lds)
 objs := kernel.o
 lds := kernel.ld
 LDFLAGS += -T $(lds)
@@ -58,7 +55,8 @@ LDFLAGS += -T $(lds)
 elf := kernel.elf
 bin := kernel.bin
 
 elf := kernel.elf
 bin := kernel.bin
 
-# Targets
+#  ---------------------------------------------------------------------------  #
+
 all : $(bin)
 
 clean :
 all : $(bin)
 
 clean :
diff --git a/notes.txt b/notes.txt
deleted file mode 100644 (file)
index a6cd67e..0000000
--- a/notes.txt
+++ /dev/null
@@ -1 +0,0 @@
-[ ] test -Os / -Oz optimization flags