I'm trying to build a C++ library on a linux system with constrained memory resources, using G++ 4.6. The library uses Boost heavily.
I've seen various threads here and in other websites regarding compilation speed, but I'm interested in tips and tricks to make G++ less demanding on memory resources, even though it means loosing speed.
EDIT: I've tried using precompiled headers for Boost, which improves only build speed, but still requires roughly the same amount of memory.
boost
. High memory usage at compile-time usually means that there are a lot of template instantiations. – Agnosticism