diff options
author | Damien George <damien.p.george@gmail.com> | 2019-09-10 13:47:24 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-05 13:42:39 +1000 |
commit | 306ec5369a1b82c2c9389cea1dfcb5bf1861c71a (patch) | |
tree | 3239d0ec9776b45ced9555318e1c4bd92cf06c92 /py/persistentcode.c | |
parent | 3504edc8048f8ab038ace50b0bbdf65b30619cc5 (diff) |
py/emitnative: Add support for archs that cannot read executable data.
In which case place the native function prelude in a bytes object, linked
from the const_table of that function. An architecture should define
N_PRELUDE_AS_BYTES_OBJ to 1 before including py/emitnative.c to emit
correct machine code, then enable MICROPY_EMIT_NATIVE_PRELUDE_AS_BYTES_OBJ
so the runtime can correctly handle the prelude being in a bytes object.
Diffstat (limited to 'py/persistentcode.c')
0 files changed, 0 insertions, 0 deletions