[cfe-dev] Memory consumption measurement results
Chris Lattner
clattner at apple.com
Wed Mar 31 09:33:08 PDT 2010
On Mar 31, 2010, at 4:33 AM, ihusar wrote:
> so I did some memory consumption measurement and the results are as
> follows:
>
> source file size: 12MB
> resulting .bc file with debug info has 250MB
>
> clang: max. 4.8 GB
> clang -fsyntax-only: max. ~120 MB
> llvm-gcc: max. 4.1 GB
> gcc 4.4.1: max 1.4 GB
> opt -O3: max. 3.6 GB
>
>
> source file size: 24MB
>
> clang: max. 7.5 GB, stopped after 1 hour
> gcc: after 11 seconds: gcc: Internal error: Segmentation fault (program
> cc1), max. 1.4 GB
This is interesting. I infer that these memory usage numbers are for "clang -O0 -g"? If so, you might want to try a new build, last night several memory and compile time improvements went in for debug info, and more are coming.
-Chris
More information about the cfe-dev
mailing list