C++ compiler options.
Hi.
I thought this question is more suited to education.
I have been working on a STM32F091 C++ project just to get an idea code size, and I noticed that the size of the binary is huge even when optimisation is set to (-Os). I think its because the compiler is bringing in everything, even when certain functions, and section are not being used, but! I’m not sure.
Generally speaking, is there a way if streamlining my project to cut down on code?
Thanks
cp