]> git.feebdaed.xyz Git - 0xmirror/mongoose.git/commitdiff
optimize for size, as everyone else
authorSergio R. Caprile <scaprile@cesanta.com>
Tue, 23 Dec 2025 17:06:06 +0000 (14:06 -0300)
committerSergio R. Caprile <scaprile@cesanta.com>
Tue, 23 Dec 2025 17:06:06 +0000 (14:06 -0300)
tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile

index cf0e3bb267b2c7eac667ac3d4fe823178c9c9284..2be9c3baaec30f7e093cb662ed31f42c794a347c 100644 (file)
@@ -1,6 +1,6 @@
 CFLAGS  = -W -Wall -Wextra -Werror -Wundef -Wshadow -Wdouble-promotion
 CFLAGS += -Wformat-truncation -fno-common -Wconversion -Wno-sign-conversion
-CFLAGS += -g3 -O3 -ffunction-sections -fdata-sections
+CFLAGS += -g3 -Os -ffunction-sections -fdata-sections
 CFLAGS += -I. -Icmsis_core/CMSIS/Core/Include -Icmsis_g0/Include
 CFLAGS += -mcpu=cortex-m0 -mthumb -mfloat-abi=soft $(CFLAGS_EXTRA)
 LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--gc-sections -Wl,-Map=$@.map