diff options
| author | Alessandro Gatti <a.gatti@frob.it> | 2025-10-28 15:38:38 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-11-03 13:21:46 +1100 |
| commit | a1684ad2c142e804cffce8f4f14b7293c1ac44b4 (patch) | |
| tree | 1c895f4813dea3f67850b1631b340f1d4b737e5e /docs/esp8266 | |
| parent | 385e4f3d0cb726a33beaca17bf403f1850bb3cbf (diff) | |
py/asmrv32: Refactor register-indexed load/store emitters.
This commit shortens register-indexed load/store emitter functions, by
reusing integer-indexed equivalent operations as part of the sequence
generation process.
Before these changes, register-indexed load/store emitters would follow
two steps to generate the sequence: generate opcodes to fix up the
register offset to make it point to the exact position in memory where
the operation should take place, and then perform the load/store
operation itself using 0 as an offset from the recalculated address
register.
Since there is already a generic optimised emitter for integer-indexed
load/stores, that bit of code can be reused rather than having an ad-hoc
implementation that is tailored to operate on an offset of 0. Removing
the custom emitter code in favour of calling the general integer-indexed
emitter saves around 150 bytes without any changes in the emitter
behaviour (generating the same opcode sequence and making use of future
improvement in that emitter too).
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions
