summaryrefslogtreecommitdiffstatshomepage
path: root/py/asmbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/asmbase.c')
-rw-r--r--py/asmbase.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/asmbase.c b/py/asmbase.c
index cf64e3f3d0..3fce543a7f 100644
--- a/py/asmbase.c
+++ b/py/asmbase.c
@@ -30,6 +30,7 @@
#include "py/obj.h"
#include "py/misc.h"
#include "py/asmbase.h"
+#include "py/persistentcode.h"
#if MICROPY_EMIT_MACHINE_CODE
@@ -91,6 +92,11 @@ void mp_asm_base_label_assign(mp_asm_base_t *as, size_t label) {
} else {
// ensure label offset has not changed from PASS_COMPUTE to PASS_EMIT
assert(as->label_offsets[label] == as->code_offset);
+ #if MICROPY_DYNAMIC_COMPILER && MICROPY_EMIT_NATIVE_DEBUG
+ if (mp_dynamic_compiler.native_arch == MP_NATIVE_ARCH_DEBUG) {
+ mp_printf(MICROPY_EMIT_NATIVE_DEBUG_PRINTER, "label(label_%u)\n", (unsigned int)label);
+ }
+ #endif
}
}