summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/py.mk7
-rw-r--r--windows/README2
2 files changed, 6 insertions, 3 deletions
diff --git a/py/py.mk b/py/py.mk
index 5b0dd3d3a8..aa282b3808 100644
--- a/py/py.mk
+++ b/py/py.mk
@@ -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)
diff --git a/windows/README b/windows/README
index 615ada2012..28940f2c3d 100644
--- a/windows/README
+++ b/windows/README
@@ -4,7 +4,7 @@ It is based on Unix port, and expected to remain so.
To cross-compile under Debian/Ubuntu Linux system:
sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
-make CC=i586-mingw32msvc-gcc
+make CROSS_COMPILE=i586-mingw32msvc-
The port requires additional testing, debugging, and patches. Please
consider to contribute.