aboutsummaryrefslogtreecommitdiff
path: root/py/asmbase.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-09 22:50:58 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-09 22:50:58 +1100
commit155fdc74d5864266441887d6c88111159f401a62 (patch)
tree190638448b8cedcdfe43fa703b3bf72e3a38f333 /py/asmbase.h
parente920bab9768f71c7e22fcfc5af3e1c40f2db8eeb (diff)
py/asm: Remove need for dummy_data when doing initial assembler passes.
For all but the last pass the assembler only needs to count how much space is needed for the machine code, it doesn't actually need to emit anything. The dummy_data just uses unnecessary RAM and without it the code is not any more complex (and code size does not increase for Thumb and Xtensa archs).
Diffstat (limited to 'py/asmbase.h')
-rw-r--r--py/asmbase.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/py/asmbase.h b/py/asmbase.h
index 06fdd4b90..d2b403893 100644
--- a/py/asmbase.h
+++ b/py/asmbase.h
@@ -40,9 +40,6 @@ typedef struct _mp_asm_base_t {
size_t max_num_labels;
size_t *label_offsets;
-
- // must be last in struct
- uint8_t dummy_data[4];
} mp_asm_base_t;
void mp_asm_base_init(mp_asm_base_t *as, size_t max_num_labels);