summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/machine_uart.c
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-03-04 00:55:25 +0100
committerDamien George <damien@micropython.org>2025-05-29 12:12:39 +1000
commitf5d10c322ecacc6be208388fa93adba5bee6eb0c (patch)
treeca4e15f5f93600e72a97dfa13e9031e5bf53f778 /esp8266/machine_uart.c
parent1006ed69f0ee8ea326a02ff05f45234c62d32d4e (diff)
downloadmicropython-master.tar.gz
micropython-master.zip
py/asmxtensa: Emit prologue jump only when constants table is in use.HEADmaster
This commit simplifies native functions' prologue code by not emitting a jump opcode that goes over the function's constants pool if the pool is empty. The original code assumed the constants pool is never empty as large 32-bits constants are commonly used, but for inline assembler functions that may not be the case. This meant that inline assembler functions may start with an unneeded jump (along with its alignment byte), using four bytes more than necessary. This commit is limited to the "xtensa" target, as "xtensawin" doesn't support inline assembler functions yet, so native functions' constant pools are almost always guaranteed to hold one or more values. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'esp8266/machine_uart.c')
0 files changed, 0 insertions, 0 deletions