summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Guillen Fandos2021-05-07 20:41:54 +0200
committerDavid Guillen Fandos2021-05-07 20:41:54 +0200
commit37430f22c5234cb09f2325575806b830f947bf8a (patch)
tree715e87726e9c9e6c7aec3d7d1e7faf259f6874eb /Makefile
parent7877a8888b4e607c3df77c5d5f47e2c880cb9a24 (diff)
downloadpicogpsp-37430f22c5234cb09f2325575806b830f947bf8a.tar.gz
picogpsp-37430f22c5234cb09f2325575806b830f947bf8a.tar.bz2
picogpsp-37430f22c5234cb09f2325575806b830f947bf8a.zip
Small optimization (~2-4%) and whitespace cleanup!
Cleans up a ton of whitespace in cpu.c (like 100KB!) and improves readability of some massive decode statements. Added an optimization for PC-relative loads (pool load) in ROM (since it's read only and cannot possibily change) that directly emits an immediate load. This is way faster, specially in MIPS/x86, ARM can be even faster if we rewrite the immediate load macros to also use a pool.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5d28045..f4c758f 100644
--- a/Makefile
+++ b/Makefile
@@ -376,6 +376,7 @@ else ifeq ($(platform), mips32)
SHARED := -shared -nostdlib -Wl,--version-script=link.T
fpic := -fPIC -DPIC
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ CFLAGS += -fno-caller-saves
HAVE_DYNAREC := 1
CPU_ARCH := mips