Hi,
I'm thinking about adding MicroPython support to another project. However, one issue is that it needs quite a lot of flash memory (about 256kB AFAIK). Is it possible to reduce the flash requirements by e.g. building micropython without the parser/compiler, i.e., .py files would be compiled into .mpy files before loading them into the target? If so, by how much does this reduce the required flash space? Also, are there any other ways to "slim down" MicroPython?
Reduce flash requirements by removing parser?
Re: Reduce flash requirements by removing parser?
Yes.salami08 wrote: ↑Fri Aug 10, 2018 3:28 pmHi,
I'm thinking about adding MicroPython support to another project. However, one issue is that it needs quite a lot of flash memory (about 256kB AFAIK). Is it possible to reduce the flash requirements by e.g. building micropython without the parser/compiler, i.e., .py files would be compiled into .mpy files before loading them into the target? If so, by how much does this reduce the required flash space? Also, are there any other ways to "slim down" MicroPython?
Code: Select all
// Whether to include the compiler
#define MICROPY_ENABLE_COMPILER (1)
Select the options you want, build and compare the output executable.