[Serialization] Fighting code bloat...
what are the options to reduce executable footprint when using boost serialization library?
case somewhat scares me: The resulting executable generated by GCC on Cygwin is (no optimizations) 1.5MB! ^^^^^^^^^^^^^^^^^^ | I would start here -| Enable optimizations (at least -O) and I would expect the templates will get rendered down to something a little more reasonable. At least that's been my experience (including with this
At 10:07 PM +0000 10/24/05, Mats Eklund wrote: library specifically).
Are you building in release mode? This would be curcial.
Robert Ramey
"Mats Eklund"
Robert Ramey wrote:
Are you building in release mode? This would be curcial.
Robert Ramey "Mats Eklund"
wrote in message news:BAY12-F231EFFAD6B4FD65FFD2F6E8D770@phx.gbl... Hi, what are the options to reduce executable footprint when using boost serialization library?
I just tried the boost serialization library because I'd like to store and load polymorphic classes on a stream, binary as well as xml. The library seems to meet these needs very well, however, I am working on an embedded platform with limited memory resources (executable size < 2MBs), and my small test case somewhat scares me: The resulting executable generated by GCC on Cygwin is (no optimizations) 1.5MB! Here is the source (based on an example from boost pointer container library):
<snip> Eeek! Please use an agent that quotes and line-wraps! (And bottom replying would be nice, but we can't have it all ;-) -- don't quote this
participants (4)
-
Kim Barrett
-
Mats Eklund
-
Robert Ramey
-
Simon Buchan