Hi, our project heavily uses c++ template, and the resulting executable is
almost 1.5G Bytes, which is too big to be acceptable. Adding -O2 or -Os does
not seem helping. Is there any way (like link option, etc) to reduce the size?
__
debug or non-debug build?
& no, for a full release build, measuring the final executable size,
there's not much you can do with the compiler.
you can try to factor common portions out of your templates (eg: remove
template parameters where possible - if, for example, a member function of
a class