summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-26 16:44:14 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-26 16:52:45 +0000
commit4112590a602fa11b4d9a3df3ed5c55df56c0dc62 (patch)
tree387c83d280119ddc68710ec8592e261f62140da4 /py/runtime.c
parenta210c774f9cfbcde284f5b8a63442b4d6da1ae5b (diff)
downloadmicropython-4112590a602fa11b4d9a3df3ed5c55df56c0dc62.tar.gz
micropython-4112590a602fa11b4d9a3df3ed5c55df56c0dc62.zip
py, compiler: When just bytecode, make explicit calls instead of table.
When just the bytecode emitter is needed there is no need to have a dynamic method table for the emitter back-end, and we can instead directly call the mp_emit_bc_XXX functions. This gives a significant reduction in code size and a very slight performance boost for the compiler. This patch saves 1160 bytes code on Thumb2 and 972 bytes on x86, when native emitters are disabled. Overall savings in code over the last 3 commits are: bare-arm: 1664 bytes. minimal: 2136 bytes. stmhal: 584 bytes (it has native emitter enabled). cc3200: 1736 bytes.
Diffstat (limited to 'py/runtime.c')
0 files changed, 0 insertions, 0 deletions