From fe3d16e8c24e2f3733339a69c66d740747b2e859 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Sat, 16 Aug 2014 22:55:53 +0200 Subject: Basic native ARM emitter --- py/compile.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'py/compile.c') 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 -- cgit v1.2.3