Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent bytecode v2 #1577

Closed
wants to merge 12 commits into from

Commits on Nov 2, 2015

  1. Configuration menu
    Copy the full SHA
    ee0d675 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e6aae9e View commit details
    Browse the repository at this point in the history
  3. py: Add constant table to bytecode.

    Contains just argument names at the moment but makes it easy to add
    arbitrary constants.
    dpgeorge committed Nov 2, 2015
    Configuration menu
    Copy the full SHA
    910febb View commit details
    Browse the repository at this point in the history
  4. py: Add MICROPY_PORTABLE_CODE, for compiler to produce portable bytec…

    …ode.
    
    Main changes when MICROPY_PORTABLE_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)
    dpgeorge committed Nov 2, 2015
    Configuration menu
    Copy the full SHA
    475b674 View commit details
    Browse the repository at this point in the history
  5. py: Add MICROPY_PORTABLE_CODE_SAVE, for ability to load/save bytecode.

    With MICROPY_PORTABLE_CODE, bytecode can be read from a .mpc file and
    executed.  With MICROPY_PORTABLE_CODE_SAVE enabled as well, bytecode can
    be saved to a .mpc file.
    dpgeorge committed Nov 2, 2015
    Configuration menu
    Copy the full SHA
    36b31d2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c074af4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    522e4f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2b48de9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1770b40 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    41aaf53 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    09778f1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b74e0a0 View commit details
    Browse the repository at this point in the history