<pre><span style="font-family:arial;white-space:normal">G++/Mingw64 v4.7.1, ld v2.22.52. I've been checking out the process list and ld uses 2.6 gigabytes of memory on a 2 gigabytes system. So, I hereby learned that you need at least 4 gigabytes in your wannabe LLVM build system :-)</span>
</pre><pre><span style="font-family:arial;white-space:normal">I'll try your option sometime when the build is complete. It may take hours or days until that.</span></pre><pre><font face="arial"><span style="white-space:normal"><br>
</span></font></pre><pre><span style="font-family:arial;white-space:normal">Cheers,</span></pre><pre><span style="font-family:arial;white-space:normal">Mikael</span></pre><pre><span style="font-family:arial;white-space:normal"><br>
</span></pre><div class="gmail_quote">2012/5/27 xunxun <span dir="ltr"><<a href="mailto:xunxun1982@gmail.com" target="_blank">xunxun1982@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
于 2012/5/27 11:04, Mikael Lyngvig 写道:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm building using MINGW64 on a very slow system (Intel Atom 330 X2 1.6 GHz), but it seems rather odd that the system has been linking clang.exe for the past two hours. It appears that a couple of gigabytes of virtual memory are being used (causing constant swapping) - the system has only 2 GB of physical memory.<br>
<br>
Is this a bug in MINGW64 (binutils 2.22) or is it just too little RAM in the build machine? After all, clang.exe is only about 35 megabytes or so, so you'd think that it didn't take four gigabytes to link the executable. But then again, the input libraries to clang.exe take up about 1.2 gigabyte. If the GNU/MINGW64 linker naively reads all library files into memory and then searches about to resolve unresolved symbols, I guess it could cause excessive trashing during link.<br>
<br>
<br>
Cheers,<br>
Mikael<br>
<br>
<br>
</blockquote>
Which edition of your gcc?<br>
<br>
If newer than gcc4.6 (including 4.6), you may try to add -fno-keep-inline-dllexport to your compiler option, this will improve your link issues.<span><font color="#888888"><br>
<br>
<br>
-- <br>
Best Regards,<br>
xunxun<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>-- Earth is a soddy place. Stay away!<br>