Crypto icon indicating copy to clipboard operation
Crypto copied to clipboard

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

Open DonBrus opened this issue 1 year ago • 0 comments

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).

DonBrus avatar Mar 05 '24 11:03 DonBrus