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
mpy-cross bytecode optimizations level ?!? #5392
Comments
See #5393 The optimisation level is the same as setting |
Thanks! I will close this for #5393 |
I looked at: http://docs.micropython.org/en/latest/library/micropython.html#micropython.opt_level reopen this issues, because I miss the highest value. I see only:
So there must exists a level 4 ? And another question: What's about DocStrings and doc: Will they be always striped? |
Any optimisation behaviour is enabled at the given level, and any higher levels. But in reality it's just a number... so I guess a level 4 could be added in the future (which included all O1, O2, O3 optimisations) but currently the highest level used is
The behaviour of docstrings (and the So yes, docstrings are always stripped regardless of the optimisation flag (this applies to both mpy-cross and the on-board compiler). |
allow usb_hid.Device(..., report_ids=(0,), ...)
The mpy-cross help or https://github.com/micropython/micropython/blob/master/mpy-cross/README.md does not describe which optimizations level exist. And what the levels do.
I notice that the optimizations level, set with
-O
, changes the information in tracebacks. At higher levels, for example, the code line number is always 0.Is there more detailed information about this somewhere?
I also ask here:
The text was updated successfully, but these errors were encountered: