On Sunday, 11 January 2015 at 15:02:07 UTC, bearophile wrote:
Mike:
I'm building some code that is heavily templated. Therefore,
I have many very small classes.
This is a non sequitur.
I believe it is because nearly every one of the instantiated
template names is appears in the .rodata section, thus causing
the binary's size to inflate.
Most of my code just uses classes as namespaces calling static
methods and properties.
Aren't structs better for that?
Not in my current design, as I also make use of inheritance. If
you're curious, you can see the code here:
https://github.com/JinShil/stm32f42_discovery_demo, specifically
the stm32f42 folder.
Mike