diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-24 02:59:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-24 02:59:43 +0300 |
commit | 1c1d902cd395f1b521e4fe1e11f8f26f50eafc3f (patch) | |
tree | 374451d348f3f9f731d0be6c6f47eec1d96af5d8 /py | |
parent | 6c94abe3478db4ad200a1d578c4f6b0e2df9ae1a (diff) | |
download | micropython-1c1d902cd395f1b521e4fe1e11f8f26f50eafc3f.tar.gz micropython-1c1d902cd395f1b521e4fe1e11f8f26f50eafc3f.zip |
Makefile: Allow to override "super optimization" options used for some files.
To help with debugging issue like #510 for example.
Diffstat (limited to 'py')
-rw-r--r-- | py/py.mk | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -7,6 +7,9 @@ HEADER_BUILD = $(BUILD)/genhdr # file containing qstr defs for the core Python bit PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h +# some code is performance bottleneck and compiled with other optimization options +CSUPEROPT = -O3 + # py object files PY_O_BASENAME = \ nlrx86.o \ @@ -135,8 +138,8 @@ $(PY_BUILD)/emitnthumb.o: py/emitnative.c $(call compile_c) # optimising gc for speed; 5ms down to 4ms on pybv2 -$(PY_BUILD)/gc.o: CFLAGS += -O3 +$(PY_BUILD)/gc.o: CFLAGS += $(CSUPEROPT) # optimising vm for speed, adds only a small amount to code size but makes a huge difference to speed (20% faster) -$(PY_BUILD)/vm.o: CFLAGS += -O3 +$(PY_BUILD)/vm.o: CFLAGS += $(CSUPEROPT) |