Unlikely you screwed up, -O0 makes bigger code than -O2 almost in every
case; then -g annotates it. I'm expecting -ggdb to take some few GBs more.

It'll be the same if not worse with almost all software, -g3 would make it
even worse.


Diego Elio Pettenò — Flameeyes
flamee...@flameeyes.eu — http://blog.flameeyes.eu/


On Fri, Aug 2, 2013 at 9:05 AM, Michał Górny <mgo...@gentoo.org> wrote:

> Dnia 2013-08-02, o godz. 02:07:18
> Duncan <1i5t5.dun...@cox.net> napisał(a):
>
> > Michał Górny posted on Thu, 01 Aug 2013 13:33:48 +0200 as excerpted:
> >
> > > LLVM has peek build space consumption around:
> > >
> > > - 400-550M without clang (depending on targets),
> > > - 950-1200M with clang,
> > > - 16G with clang & USE=debug (assertions, checks).
> >
> > Ouch!
> >
> > Thanks for the heads-up.  I didn't realize -g/debug added THAT much!  For
> > sure I'll have to keep that in mind if I ever decide to build llvm with
> > debug... and the general rule in mind for building anything else with
> > debug.
>
> Just to make it clear, USE=debug doesn't imply -g. It gets 16G with
> -O2. Curious enough, -O0 -g gave me 14G but maybe I screwed something
> up :).
>
> --
> Best regards,
> Michał Górny
>

Reply via email to