Skip to content

Commit 3ccdbf7

Browse files
committed
zephyr/Makefile: Add -fomit-frame-pointer.
Somehow, Zephyr uses -fno-omit-frame-pointer, whch bloats code size considerably (+5K for minimal ARM Thumb2 build).
1 parent 50e8e28 commit 3ccdbf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ SRC_QSTR += $(SRC_C)
5454
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
5555

5656
CFLAGS = $(KBUILD_CFLAGS) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
57-
-std=gnu99 -DNDEBUG -DMICROPY_HEAP_SIZE=$(MICROPY_HEAP_SIZE) $(CFLAGS_EXTRA) $(INC)
57+
-std=gnu99 -fomit-frame-pointer -DNDEBUG -DMICROPY_HEAP_SIZE=$(MICROPY_HEAP_SIZE) $(CFLAGS_EXTRA) $(INC)
5858

5959
include ../py/mkrules.mk
6060

0 commit comments

Comments
 (0)