From 2c4bf4cea42e463707ac534a560060982c493dac Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 23 Dec 2025 14:06:06 -0300 Subject: [PATCH] optimize for size, as everyone else --- tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile b/tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile index cf0e3bb2..2be9c3ba 100644 --- a/tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile +++ b/tutorials/stm32/nucleo-g031-make-baremetal-builtin/Makefile @@ -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