I am working on an embedded processor, so binary size matters a lot. I try to avoid using the standard library. However, I would like to use the std :: function. I have extracted "function.hpp" from boost, and I am trying to use it, but just by turning on the function. Hpp increases the size of my binary 200k, which makes it larger than my processor can accept. If I include the standard library, it will only increase my binary 60k. I canβt understand, if Iβm not using any of the templates yet, there should be no overhead. And even if I do, I canβt imagine a code that costs 200 thousand. I use gcc 4.7, and I turned off debugging information from what I can say β-g0β, and turned on the optimization β-O2β.
Any help would be greatly appreciated.
c ++ gcc boost std embedded
Kendrick taylor
source share