Skip to content

Enable library compilation as .a instead of providing separate objects to the linker #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DonBrus
Copy link

@DonBrus DonBrus commented Mar 5, 2024

This enables finer optimizations by the linker when integrating this library in an executable that doesn't necessarily use all of its features. Without this flag, some statically allocated class instances, e.g. RNG, will take up space even when not used, although the executable might have been compiled with space optimization enabled and garbage collection for data sections. This reduction of memory usage can be quite significant in standard arduino platforms (e.g. 328p).

This enables finer optimizations by the linker when integrating this library in an executable that doesn't necessarily use all of its features. Without this flag, some statically allocated class instances, e.g. RNG, will take up space even when not used, although the executable might have been compiled with space optimization enabled and garbage collection for data sections.
This reduction of memory usage can be quite significant in standard arduino platforms (e.g. 328p).
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.

1 participant