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:
parent
5d6de1761b
commit
33b550e227
2
Makefile
2
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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue