From d133bf78f3698b975920bdd24ee3ae23ee6b32dc Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 8 Feb 2020 13:19:47 +0100 Subject: [PATCH] Turn on compiler optimizations to reduce the filesize --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2ee42aa..244e115 100644 --- a/Makefile +++ b/Makefile @@ -36,9 +36,9 @@ INCLUDES := # options for code generation #--------------------------------------------------------------------------------- CFLAGS := -std=gnu11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math -fno-builtin \ - -O0 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) + -Os -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) CXXFLAGS := -std=gnu++11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math \ - -O0 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) + -Os -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE) ASFLAGS := -mregnames LDFLAGS := -nostartfiles -Wl,--gc-sections