Makefile: run everything internally with float
authorSebastian <git@sraa.de>
Fri, 25 Jul 2014 14:07:09 +0000 (14:07 +0000)
committerSebastian <git@sraa.de>
Fri, 25 Jul 2014 14:07:09 +0000 (14:07 +0000)
- 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

index 4bb87aecd5c754468203bf6d1507aff58eeab6d8..17728e91bc84c1824ed03dcebb7f1ed2cc3c2d3c 100644 (file)
@@ -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