Skip to content
  • Damien George's avatar
    py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime. · c8e9c0d8
    Damien George authored
    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.
    c8e9c0d8