add -mcall-prologues to optimisations for a smaller binary
This commit is contained in:
parent
952ad4e2f3
commit
5ae5a0348d
2
Makefile
2
Makefile
|
|
@ -76,7 +76,7 @@ OBJCOPY = $(ARCH)objcopy
|
|||
DEFS = -DF_CPU=$(F_CPU) -DHOST -DGEN3
|
||||
# DEFS += "-DDEBUG=1"
|
||||
|
||||
OPTIMIZE = -Os -ffunction-sections -finline-functions-called-once
|
||||
OPTIMIZE = -Os -ffunction-sections -finline-functions-called-once -mcall-prologues
|
||||
# OPTIMIZE = -O0
|
||||
CFLAGS = -g -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -save-temps
|
||||
LDFLAGS = -Wl,--as-needed -Wl,--gc-sections
|
||||
|
|
|
|||
Loading…
Reference in New Issue