> I will try to do that, thanks for advice. It is a bit tedious, and many > templates are declared in headers, so I am not sure how far I will get > with that. For the record, I compared -Os and -O2 options in gcc - they differ only in -fintline-functions (enabled with -Os, disabled with -O2) and -foptimize-strlen (disabled with -Os, enabled with -O2). OTOH -O3 turns -finline-functions on again (along with many other), so I was able to compile with -O3 just fine.
It seems therefore that using -finline-functions for heavy-template code is the way to go - I imagine a new section is created for each template instantiation; since most of those functions are small and get only called one or twice (serialization code), they can be effectively inlined and need no additional sections afterwards. Cheers, Vaclav ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
