[cfe-dev] Enormous memory usage of clang

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jul 11 06:51:36 PDT 2012


> Please try clang++ -c -O2 -g botan.ii (previous revision of clang leaked memory without -g too, but it doesn't reproduce on latest trunk)
>
> I'm using clang trunk (r159913), linux x86-64, built with clang++ -O2

I get:

-O2 -g -c: about 1gb
-O2 -g -S: about 900 mb
-O3 -g -c -emit-llvm: about 800 mb

So this looks like a different bug from what you found originally, it
is "just" that our debug representation is very not very memory
efficient, but gcc 4.7 peaks at about 850 mb, so we are not that bad.

Cheers,
Rafael



More information about the cfe-dev mailing list