For the processor K32W041 we are upgrading the SDK to the latest v2.6.16 and we noticed that the resulting binary has become larger, from 68kb to 74kb.
We noticed several library files to have grown in size:
SDK_2_6_16_K32W041\middleware\wireless\framework\XCVR\lib\libRadio.a 50kb -> 379kb
SDK_2_6_16_K32W041\middleware\wireless\ieee-802.15.4\lib\libMiniMac.a 116kb -> 630kb
These larger file sizes were introduced with SDK 2.6.14
When we copy these two library files back from an older SDK (before 2.6.14), then our deployed binary image is the smaller size again.
In the compiler settings we have the options set for:
- Link time optimization, optimize for size (-flto -Os), both in compiler and linker
- Omit all symbol information (-s)
- Not startup of default libs (-nostdlib)
Is there another compiler/linker option we should set? Or, can the SDK be released with the smaller library files again?