From: Sebastian Date: Fri, 25 Jul 2014 14:07:09 +0000 (+0000) Subject: Makefile: run everything internally with float X-Git-Url: http://sraa.de/git/?a=commitdiff_plain;h=57534c6c26fafacd5344bfd09d5bf486327e659d;p=lattice-boltzmann-epiphany.git 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. --- 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