Makefile: add better optimisation flags.

Fetched from V-USB's Readme.txt. Saves almost 200 bytes and thus
likely makes the binary faster.
This commit is contained in:
Markus Hitter 2012-10-23 12:52:57 +02:00
parent 5d6de1761b
commit 33b550e227
1 changed files with 2 additions and 0 deletions

View File

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