From fcaeaa4ace926ea5a3089ec15ac72ef7210d7391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Date: Sun, 13 May 2018 22:03:56 +0200 Subject: [PATCH] Relax math precision and let GCC be more agressive Use -ffast-math for building C/C++. We don't need to be exact, let GCC be more agressive and saves few bytes (currently it saves 80bytes). --- arduino/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arduino/Makefile b/arduino/Makefile index e652707..31a3b56 100644 --- a/arduino/Makefile +++ b/arduino/Makefile @@ -21,4 +21,8 @@ ARDUINO_DIR ?= $(HOME)/arduino/arduino-1.8.5 USER_LIB_PATH := $(PWD) +# We don't need exact math. Let gcc be a bit more agressive. +CFLAGS += -ffast-math +CXXFLAGS += -ffast-math + include $(ARDMK_DIR)/Arduino.mk