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

LTO and optimize for size? #35

Open
schungx opened this issue Sep 4, 2021 · 0 comments
Open

LTO and optimize for size? #35

schungx opened this issue Sep 4, 2021 · 0 comments

Comments

@schungx
Copy link

schungx commented Sep 4, 2021

I see that Rhai seems to be exhausting the stack space on the BL602, which is a bit baffling for me, since I've seen somebody compiling a bare minimum engine for the ST32 which fits under 64KB...

Two things I can suggest:

  1. Add no_position to the rhai dependency, which saves you one entire word for each AST node

  2. Use LTO and optimize for size - not sure if this changes anything, but should yield smaller builds

dacut pushed a commit to dacut/bl_iot_sdk that referenced this issue Jun 30, 2023
Start "hardware notes" file, add datasheet to repo, clean up README
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