From 5ae5a0348de8525b719d9e0a32683c92ecf9d26f Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Mon, 8 Nov 2010 18:28:28 +1100 Subject: [PATCH] add -mcall-prologues to optimisations for a smaller binary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7bea58d..cae251b 100644 --- a/Makefile +++ b/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