is it possible to save the result of MP_COMPILE to flash and reload upon reboot?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

is it possible to save the result of MP_COMPILE to flash and reload upon reboot?

Post by jickster » Wed Nov 15, 2017 4:13 pm

Is it possible to save the result of mp_compile to flash and then load it up on reboot?

Code: Select all

pyexec_frozen_module("main.py");
  parse_compile_execute
    mp_parse
    mp_compile
    save the result of  // runs the .py
With this method, would you have to load the saved MP_COMPILE artifact to RAM to execute?

Post Reply