[LLVMdev] memory hog llvm-ld

Holger Schurig hs4233 at mail.mn-solutions.de
Wed Jul 18 12:48:43 PDT 2007


> > Seems like the memory-hog status is related to debug info, e.g.
> > to -g.

> Perhaps this is related to the binutils bug discussed on the list   
> recently (in certain versions of 2.17, I believe) that causes the  
> native linker to behave very poorly when linking with debug symbols?

I don't think so. The *.o files where in binary bitcode format, and 
AFAIK llvm-ld reads them and runs various optimization stages on this. 
I can hardly see how this can have anything to do with binutils. Before 
the main.bc file got written, I terminated the run of llvm-ld.

Also, I'm not absolutely sure if it was because of "-g" or because I did 
not specify any "-O" while compiling the c/c++ files into bitcode.



More information about the llvm-dev mailing list