From 57534c6c26fafacd5344bfd09d5bf486327e659d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 25 Jul 2014 14:07:09 +0000 Subject: [PATCH] Makefile: run everything internally with float - treat floating point constants as single precision (this removes all dependencies for double) - use internal.ldf linker script (puts libc functions in local memory) speedup is immense. running code from external memory is extremely slow, especially when all cores fight for it. --- lb/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lb/Makefile b/lb/Makefile index 4bb87ae..17728e9 100644 --- a/lb/Makefile +++ b/lb/Makefile @@ -9,8 +9,8 @@ ECHO = /bin/echo -e # target toolchain ECC = e-gcc EOC = e-objcopy -ECFLAGS = -Os -std=c99 -falign-loops=8 -falign-functions=8 -Wall -ELFLAGS = -T$(EPIPHANY_HOME)/bsps/current/fast.ldf -le-lib +ECFLAGS = -Os -std=c99 -falign-loops=8 -falign-functions=8 -Wall -fsingle-precision-constant -ffast-math +ELFLAGS = -T$(EPIPHANY_HOME)/bsps/current/internal.ldf -le-lib EOFLAGS = -R .shared_dram # host application -- 2.30.2