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

(v)snprintf space optimisations #1986

Open
mark9064 opened this issue Jan 19, 2024 · 0 comments
Open

(v)snprintf space optimisations #1986

mark9064 opened this issue Jan 19, 2024 · 0 comments

Comments

@mark9064
Copy link
Contributor

We can save about 1.5K flash by only including one (v)snprintf implementation. Currently both LVGL's and newlib-nano's are included. The newlib-nano implementation does not support 64 bit integers, so we can't replace the LVGL one with it (notably the calculator app PR depends on it which is slated to be merged soon, there may be other usages I'm not aware of). So as far as I'm aware we'd ideally want to link against the normal newlib (not nano) implementation (no clue how big this is), or use the LVGL one everywhere. I'd propose this in a PR but my CMake skills are nowhere near what's needed, so if anyone wants to give it a go have at it!

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