From 33b550e22726b5b077141216a4c458005a2292b8 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Tue, 23 Oct 2012 12:52:57 +0200 Subject: [PATCH] Makefile: add better optimisation flags. Fetched from V-USB's Readme.txt. Saves almost 200 bytes and thus likely makes the binary faster. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6f1bb20..f797024 100644 --- a/Makefile +++ b/Makefile @@ -104,6 +104,8 @@ OBJCOPY = $(ARCH)objcopy 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 -Winline +CFLAGS += -fno-move-loop-invariants +CFLAGS += -fno-tree-scev-cprop LDFLAGS = -Wl,--as-needed -Wl,--gc-sections LIBS = -lm LIBDEPS =