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

Problems with bytecode encoding #22

Open
pfalcon opened this issue Dec 20, 2018 · 0 comments
Open

Problems with bytecode encoding #22

pfalcon opened this issue Dec 20, 2018 · 0 comments

Comments

@pfalcon
Copy link
Owner

pfalcon commented Dec 20, 2018

  1. Description is sparse/not clear.
  2. qstr and constant encoding per code block (== function). Instead, should be per module to allow better reuse. - .mpy ver 4 provides way to achieve that for qstr's (TBC)
  3. "code info" is mis-nomer. It has both length encoded and also ends with 0? - kinda fixed in .mpy ver 5
  4. function argname qstr's are stored in const_table and waste some space there (given that qstr's a 2-byte encoded, while entry in const_table is void*).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant