From a357395cc6cc0d82b41139ac3799612aaec2d98e Mon Sep 17 00:00:00 2001 From: Kostas Missos Date: Sat, 7 Dec 2019 20:26:51 +0200 Subject: [PATCH] nyx: Remove LTO in order to increase performance Perf gains from removing LTO linker flag amounts to actually more than 5% average in real usage scenarios in Nyx. (These include overall timings with static waits included. So basically as observed by user.) Gains observed, on many isolated cases, were between 15-35%. Additionally, this will make compiling fast again. --- nyx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/Makefile b/nyx/Makefile index eeb21fc..a7c57de 100644 --- a/nyx/Makefile +++ b/nyx/Makefile @@ -84,7 +84,7 @@ CUSTOMDEFINES += -DBL_VER_MJ=$(BLVERSION_MAJOR) -DBL_VER_MN=$(BLVERSION_MINOR) - #CUSTOMDEFINES += -DDEBUG ARCH := -march=armv4t -mtune=arm7tdmi -mthumb-interwork -CFLAGS = $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -flto -fomit-frame-pointer -fno-inline -fno-strict-aliasing -std=gnu11 -Wall $(CUSTOMDEFINES) +CFLAGS = $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -fno-strict-aliasing -std=gnu11 -Wall $(CUSTOMDEFINES) CFLAGS += -g LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections -Xlinker --defsym=NYX_LOAD_ADDR=$(NYX_LOAD_ADDR)