add -mcall-prologues to optimisations for a smaller binary

This commit is contained in:
Michael Moon 2010-11-08 18:28:28 +11:00
parent 952ad4e2f3
commit 5ae5a0348d
1 changed files with 1 additions and 1 deletions

View File

@ -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