summaryrefslogtreecommitdiff
path: root/py/persistentcode.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-09 13:25:58 +1100
committerDamien George <damien@micropython.org>2024-02-16 12:48:02 +1100
commit416465d81e911b088836f4e7c37fac2bc0f67917 (patch)
tree2a535c6f751d75287abea15e91f3d11d646633cd /py/persistentcode.c
parent39bf055d23be4b0f761af115773c3db1074fc2dd (diff)
py/emitglue: Provide a truncated mp_raw_code_t for non-asm code.
The `asm_n_pos_args` and `asm_type_sig` members of `mp_raw_code_t` are only used for raw codes of type MP_CODE_NATIVE_ASM, which are rare, for example in frozen code. So using a truncated `mp_raw_code_t` in these cases helps to reduce frozen code size on targets that have MICROPY_EMIT_INLINE_ASM enabled. With this, change in firmware size of RPI_PICO builds is -648. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/persistentcode.c')
0 files changed, 0 insertions, 0 deletions