Makefile: Allow to override "super optimization" options used for some files.
To help with debugging issue like #510 for example.
This commit is contained in:
parent
6c94abe347
commit
1c1d902cd3
7
py/py.mk
7
py/py.mk
@ -7,6 +7,9 @@ HEADER_BUILD = $(BUILD)/genhdr
|
|||||||
# file containing qstr defs for the core Python bit
|
# file containing qstr defs for the core Python bit
|
||||||
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
|
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
|
||||||
|
|
||||||
|
# some code is performance bottleneck and compiled with other optimization options
|
||||||
|
CSUPEROPT = -O3
|
||||||
|
|
||||||
# py object files
|
# py object files
|
||||||
PY_O_BASENAME = \
|
PY_O_BASENAME = \
|
||||||
nlrx86.o \
|
nlrx86.o \
|
||||||
@ -135,8 +138,8 @@ $(PY_BUILD)/emitnthumb.o: py/emitnative.c
|
|||||||
$(call compile_c)
|
$(call compile_c)
|
||||||
|
|
||||||
# optimising gc for speed; 5ms down to 4ms on pybv2
|
# 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)
|
# 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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user