summaryrefslogtreecommitdiffstatshomepage
path: root/py/persistentcode.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-03-07 11:38:27 +1100
committerDamien George <damien@micropython.org>2024-06-21 16:21:27 +1000
commit9dbc787ce8dda9df39eb68c03de144155b2253f0 (patch)
treef05e960eb7f1bc173570c2bca0901524ed813407 /py/persistentcode.h
parente2ae03e97963c2d338752bc4cbe8bd87981014fb (diff)
downloadmicropython-9dbc787ce8dda9df39eb68c03de144155b2253f0.tar.gz
micropython-9dbc787ce8dda9df39eb68c03de144155b2253f0.zip
py/emitndebug: Add native debug emitter.
This emitter prints out pseudo-machine instructions, instead of the usual output of the native emitter. It can be enabled on any port via `MICROPY_EMIT_NATIVE_DEBUG` (make sure other native emitters are disabled) but the easiest way to use it is with mpy-cross: $ mpy-cross -march=debug file.py Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/persistentcode.h')
-rw-r--r--py/persistentcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/persistentcode.h b/py/persistentcode.h
index 3f3c67764d..f0b7f70f7d 100644
--- a/py/persistentcode.h
+++ b/py/persistentcode.h
@@ -98,6 +98,7 @@ enum {
MP_NATIVE_ARCH_XTENSA,
MP_NATIVE_ARCH_XTENSAWIN,
MP_NATIVE_ARCH_RV32IMC,
+ MP_NATIVE_ARCH_DEBUG, // this entry should always be last
};
enum {