Skip to content

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