From cf032d1395e85204c24851f3ac883beeb068edd5 Mon Sep 17 00:00:00 2001 From: Stefan Dorn Date: Sun, 12 Jun 2016 03:41:15 +0100 Subject: [PATCH] lto --- src/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefile b/src/makefile index 792991f..5f85ae9 100644 --- a/src/makefile +++ b/src/makefile @@ -5,7 +5,7 @@ CFLAGS := -mmcu=atmega32u4 # processor type (teensy 2.0); must match real life CFLAGS += -DF_CPU=16000000 # processor frequency; must match initialization in source CFLAGS += -std=gnu99 # use C99 plus GCC extensions -CFLAGS += -Os # optimize for size +CFLAGS += -Os -flto # optimize for size CFLAGS += -Wall -Werror # enable lots of common warnings CFLAGS += -fpack-struct # pack all structure members together without holes CFLAGS += -fshort-enums # allocate compact enums