summaryrefslogtreecommitdiffstatshomepage
path: root/py/persistentcode.h
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-06-25 15:45:13 +0200
committerDamien George <damien@micropython.org>2024-07-01 11:36:03 +1000
commit0600e4f27333092884358c967123dcc040d7a1cc (patch)
tree6f553ad86e19e0282c2322f55deb47a0dfefc9af /py/persistentcode.h
parent0e261443be9a9201fd786b54aa2d0198f21543f7 (diff)
downloadmicropython-0600e4f27333092884358c967123dcc040d7a1cc.tar.gz
micropython-0600e4f27333092884358c967123dcc040d7a1cc.zip
py/asmrv32: Make some code sequences smaller.
This commit changes a few code sequences to use more compressed opcodes where possible. The sequences in question are the ones that show up the most in the test suite and require the least amount of code changes, namely short offset loads from memory to RET/ARG registers, indirect calls through the function table, register-based jumps, locals' offset calculation, reg-is-null jumps, and register comparisons. There are no speed losses or gains from these changes, but there is an average 15-20% generated code size reduction. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py/persistentcode.h')
0 files changed, 0 insertions, 0 deletions