pfalcon wrote: ↑Sat Oct 28, 2017 6:06 pm
Doesn't all code persist independently? I don't get it.
What's exactly causing confusion? When someone tells you "yellow sun", they don't imply that there's also a green sun.
I don't know what "persist" means in this case.
The commit says
py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime.
Main changes when MICROPY_PERSISTENT_CODE is enabled are:
- qstrs are encoded as 2-byte fixed width in the bytecode
- all pointers are removed from bytecode and put in const_table (this
includes const objects and raw code pointers)
Ultimately this option will enable persistence for not just bytecode but
also native code.
My question is: what does it mean for code to NOT persist?
If it's located on flash because it's frozen . . . isn't it by default persisted?
Obviously a slightly different definition of "persist" is being used that I'm missing.