How do I load precompiled python scripts?
Posted: Tue Aug 30, 2016 3:19 pm
I want to eliminate the mp compiler and load precompiled python scripts from memory. I just need to be pointed in the right direction.
Please see the new forum at
https://forum.micropython.org/
Code: Select all
#define MICROPY_PERSISTENT_CODE_LOAD (1)
Code: Select all
make FROZEN_MPY_DIR=scripts
Code: Select all
#define MICROPY_PERSISTENT_CODE_LOAD (1)
Code: Select all
#elif defined(__thumb2__) || defined(__xtensa__)
I see, if that's the case I wont bother omitting the compiler, but I still would like to transfer the scripts as compiled binaries. Sending them as strings is not very efficient.Roberthh wrote:
At another place there was the question discussed, whether the compiler can be omitted from the binaries. The outcome was, that this is not worth the effort, since the code space saving is minor.