diff options
| author | Damien George <damien@micropython.org> | 2024-03-07 11:38:27 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-06-21 16:21:27 +1000 |
| commit | 9dbc787ce8dda9df39eb68c03de144155b2253f0 (patch) | |
| tree | f05e960eb7f1bc173570c2bca0901524ed813407 /py/mpconfig.h | |
| parent | e2ae03e97963c2d338752bc4cbe8bd87981014fb (diff) | |
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/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index efb30ac04..bc6bf75fe 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -412,7 +412,7 @@ #endif // Convenience definition for whether any native emitter is enabled -#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_X86 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM || MICROPY_EMIT_XTENSA || MICROPY_EMIT_XTENSAWIN || MICROPY_EMIT_RV32) +#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_X86 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM || MICROPY_EMIT_XTENSA || MICROPY_EMIT_XTENSAWIN || MICROPY_EMIT_RV32 || MICROPY_EMIT_NATIVE_DEBUG) // Some architectures cannot read byte-wise from executable memory. In this case // the prelude for a native function (which usually sits after the machine code) |
