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

Reduce executable size overhead for embedded targets using newlib nano #839

Closed
wants to merge 2 commits into from

Conversation

teajay-fr
Copy link

This pull request makes libfmt usable for small embedded targets.

Detecting newlib is necessary as it doesn't provide the function strtod_l.

The second aspect is the dependency on std::locale which bring loads of code overhead (100kb in my tests) just to get hold of the separation character for thousands. To work around this, a static separator can be configured through the define FMT_STATIC_THOUSANDS_SEPARATOR.

Thomas Bernard added 2 commits August 17, 2018 11:22
For embedded target the usage of locale bring a huge amount of code to the executable, just to get hold of the thousands separator. Using a static defined thousands separator makes libfmt embedded target friendly.
@vitaut
Copy link
Contributor

vitaut commented Aug 19, 2018

Merged in abde38b, thanks!

@vitaut vitaut closed this Aug 19, 2018
@vitaut
Copy link
Contributor

vitaut commented Aug 11, 2019

@teajay-fr, could you please review the updated CONTIBUTING document, particularly the part about licensing, and let me know if you agree with it being applied to your contributions to {fmt}? The library is likely to be relicensed (#1073) so I'm collecting approval from all earlier contributors. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants