Hello, I was wondering whether anybody has any tips to fight code-bloat on GCC. I'm using the MPL in rather 'extravagant' ways, and I have object files from 4 to 6 mb, and a final executable that is 16 mb. My object files and executable using the Intel compiler and MSVC are a lot smaller (ca. 300 kb and 905 kb respectively).
I have checked the following: http://www.diamand.org/bloat.html http://www.garloff.de/kurt/freesoft/gcc/ http://www.boost.org/libs/regex/faq.htm http://www.accu.org/acornsig/public/cathlib/docs/bloat.html but none of them really apply or help. I'm not really sure I understand the reasons for the bloat either. Normally template-bloat is caused by having a template instantiation appear in more than one translation unit, and them not being dropped during the linking fase. However, in my case it is the object files themselves that are really big already, whereas they are small on Intel and MSVC. Alexsey: do you have any MPL experiences or hints using GCC? I guess I could always dive into the disassembly to see what is generated. Thanks, Jaap Suter _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost