diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-28 23:24:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-28 23:24:43 +0100 |
commit | 1ac6faa73218d3049b3e8e8f008dbfdc756628cb (patch) | |
tree | c15cc319b14869c64e908c00f410aa262c3d442f /py/compile.c | |
parent | 516b09efc3e5d2d88457a0300b65497a9bc39624 (diff) | |
parent | 16ee30c6fa0974f2236004a663085f4035fd14df (diff) | |
download | micropython-1ac6faa73218d3049b3e8e8f008dbfdc756628cb.tar.gz micropython-1ac6faa73218d3049b3e8e8f008dbfdc756628cb.zip |
Merge pull request #833 from Vogtinator/arm-native
Basic native ARM emitter
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/py/compile.c b/py/compile.c index 10bfb1f3cd..49edc3f15c 100644 --- a/py/compile.c +++ b/py/compile.c @@ -3626,6 +3626,11 @@ mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is emit_native = emit_native_thumb_new(max_num_labels); } comp->emit_method_table = &emit_native_thumb_method_table; +#elif MICROPY_EMIT_ARM + if (emit_native == NULL) { + emit_native = emit_native_arm_new(max_num_labels); + } + comp->emit_method_table = &emit_native_arm_method_table; #endif comp->emit = emit_native; EMIT_ARG(set_native_type, MP_EMIT_NATIVE_TYPE_ENABLE, s->emit_options == MP_EMIT_OPT_VIPER, 0); @@ -3669,6 +3674,8 @@ mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is emit_native_x64_free(emit_native); #elif MICROPY_EMIT_THUMB emit_native_thumb_free(emit_native); +#elif MICROPY_EMIT_ARM + emit_native_arm_free(emit_native); #endif } #endif |