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

add option for compiler optimizations #336

Open
dlech opened this issue Feb 26, 2021 · 1 comment
Open

add option for compiler optimizations #336

dlech opened this issue Feb 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@dlech
Copy link
Member

dlech commented Feb 26, 2021

MicroPython defines 3 optimization levels. The default, O0; O1/O2 which does not compile assert statements; and O3 which does not include line numbers. These can make the compiled .mpy file smaller.

Not sure how useful this would be, but if we are looking for ways to squeeze every last byte of RAM out of the hubs, this could be a possibility.

@dlech dlech added the enhancement New feature or request label Feb 26, 2021
@laurensvalk
Copy link
Member

Line numbers are very useful. Maybe it could automatically try O3 if the O0 result wouldn't fit in half the RAM for the connected hub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants