Enable Link Time Optimization and function garbage collection
This commit is contained in:
parent
adc3ad6a4a
commit
89b7339775
8
Makefile
8
Makefile
@ -46,10 +46,14 @@ CFLAGS = -Wall \
|
||||
-mmcu=$(BOARD) \
|
||||
-DF_CPU=16000000UL \
|
||||
-DGIT_DESCR=\"$(shell git describe --abbrev=6 --dirty --always --tags --long)\" \
|
||||
-std=c11
|
||||
-std=c11 \
|
||||
-flto \
|
||||
-fdata-sections -ffunction-sections
|
||||
|
||||
# Linker flags
|
||||
LDFLAGS = -mmcu=$(BOARD)
|
||||
LDFLAGS = -mmcu=$(BOARD) \
|
||||
-flto \
|
||||
-Wl,-gc-sections
|
||||
|
||||
OBJCOPYARGS = -O ihex \
|
||||
-R .eeprom
|
||||
|
Loading…
Reference in New Issue
Block a user