mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
py/emitglue: Include fun_data_len in mp_raw_code_t only when saving.
Reduces the size of mp_raw_code_t in the case when MICROPY_DEBUG_PRINTERS is enabled. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -930,10 +930,8 @@ class RawCode(object):
|
||||
print(" .children = (void *)%s," % prelude_ptr)
|
||||
else:
|
||||
print(" .children = NULL,")
|
||||
print(" #if MICROPY_PERSISTENT_CODE_SAVE || MICROPY_DEBUG_PRINTERS")
|
||||
print(" .fun_data_len = %u," % len(self.fun_data))
|
||||
print(" #endif")
|
||||
print(" #if MICROPY_PERSISTENT_CODE_SAVE")
|
||||
print(" .fun_data_len = %u," % len(self.fun_data))
|
||||
print(" .n_children = %u," % len(self.children))
|
||||
print(" #if MICROPY_EMIT_MACHINE_CODE")
|
||||
print(" .prelude_offset = %u," % self.prelude_offset)
|
||||
|
||||
Reference in New Issue
Block a user