Compiled Python code

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Compiled Python code

Post by Roberthh » Mon May 23, 2016 5:02 pm

What is the reason for WiPy not supporting compiled python code created with mpy-cross (extension .mpy)?
Adding that capability just requires this single line in mpconfigport.h.

Code: Select all

#define MICROPY_PERSISTENT_CODE_LOAD (1)
Even is that code would still execute from RAM, the memory errors during import would be fewer and much larger code is possible.

Post Reply