8000 stm32/Makefile: Set CSUPEROPT to -Os for F0 and G0 MCUs to save space. · micropython/micropython@1842efb · GitHub
[go: up one dir, main page]

Skip to content

Commit 1842efb

Browse files
committed
stm32/Makefile: Set CSUPEROPT to -Os for F0 and G0 MCUs to save space.
Saves 1804 bytes on NUCLEO_F091RC, and 1080 bytes on NUCLEO_G0B1RE. Signed-off-by: Damien George <damien@micropython.org>
1 parent 5d3a0bb commit 1842efb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ports/stm32/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,8 @@ SRC_O += \
325325
$(STARTUP_FILE) \
326326
$(SYSTEM_FILE)
327327

328-
ifeq ($(MCU_SERIES),l0)
329-
CSUPEROPT = -Os # save some code space
330-
endif
331-
332328
ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 g0 l0))
329+
CSUPEROPT = -Os # save some code space
333330
SRC_O += \
334331
resethandler_m0.o \
335332
shared/runtime/gchelper_m0.o

0 commit comments

Comments
 (0)
0