Boost logo

Proto :

Subject: Re: [proto] Compiling in debug mode
From: Eric Niebler (eric_at_[hidden])
Date: 2011-05-12 22:59:29


On 5/13/2011 5:45 AM, Bart Janssens wrote:
> Hi guys,
>
> I've followed the recent discussion about compilation performance,
> it's good to know things are getting better and hopefully support for
> the new standard will help even more.

Probably, but someone needs to adapt Proto to use variadics/rvalue refs.
Patches welcome. :-)

> Currently, my main problem is not so much the compile time itself, but
> how much RAM gets used in debug mode (GCC 4.5.2 on ubuntu 11.04). I'm
> still using proto from boost 1.45, would the recent changes help
> anything in reducing RAM usage in debug mode?

I don't think so, but I haven't tested.

> Is anyone aware of
> tweaks for GCC that reduce memory usage, but still produce useful
> debug info (just using -g now, no optimization)?

I'll leave this for the gcc experts.

> I've gotten to the point where a compile can use upwards of 1.5GB for
> a single test, resulting in much swapping, especially when compiling
> with make -j2 (which I try to remember not to do, now ;).

Ouch. Do you have to use gcc? Perhaps clang might give you better results.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Proto list run by eric at boostpro.com