<p>Do you specify CMAKE_BUILD_TYPE <br>
if you are using cmake?</p>
<div class="gmail_quote">2012/05/27 18:21 "Mikael Lyngvig" <<a href="mailto:mikael@lyngvig.org">mikael@lyngvig.org</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>Just a brief follow-up on my link time issue: It was caused by excessive trashing; I tried rebuilding on a box with 8 gigs of RAM and observed the memory load while linking clang.exe: It peaked at 5 gigabytes memory, so now I've written this piece of info into the LLVM/Windows document that I posted earlier (I have already made a substantial number of corrections in the document). All in all, it took the 2 gig box about 5 hours to link clang.exe :-)</div>
<div><br></div><div>I must say that I am once again surprised about GNU tools. I'd expect the linker to use perhaps 100 megabytes of memory as it only needs to record where the BLOBs are in the input files and then, during one of the final passes, copy each binary block to the output file - without caching it in memory. I do suspect that GNU ld indiscriminantly reads in everything under the assumption that people never link that large files.</div>
<div><br></div><div><br></div><div>Cheers,</div><div>Mikael<br clear="all"><div>-- Love Thy Frog!</div><div><br></div>
</div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div>