Why does my build include so many 'unused' functions ?
I use STM32CubeIde in a fairly standard way, only that I use C++ source on top of the C HAL code. When inspecting the build with Build Analyzer, I noticed A LOT of code which I think I never included.. (never sure what all the HAL files do..) for example
std::__moneypunct_cache(...) :
seems to be some standard library to deal with numbers in financial format.. No idea where this could be. I don't do any of that in my application.
I think I didn't use any of the std:: stuff, but still a lot of it seems to be in my build.
When I want to do OTA firmware updates, this is going to be a problem..
Is there a simple way to strip all unused library code from the build ?
Should I use different build settings ?
Is there a way to trace back to the code who is calling these libraries ?
