<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">> I compared compilation time with clang version 3.5 that ships with latest ubuntu and the one I built (with --enable-optimized --enable-shared). The results are:<br>
<br>
</span>Is the version that you're comparing against statically linked? The overheads of shared library use are measurable with LLVM, though probably not 50%.<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div>for both only LLVM is in shared library:<div><br></div><div>ldd /b/default/llvm/Release/bin/clang<br></div></div><div><br></div><div><div> linux-vdso.so.1 => (0x00007ffffabd0000)</div><div> <a href="http://libLLVM-3.7svn.so">libLLVM-3.7svn.so</a> => /b/default/llvm/Release/bin/../lib/<a href="http://libLLVM-3.7svn.so">libLLVM-3.7svn.so</a> (0x00007fdaf27f8000)</div><div> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdaf25a0000)</div><div> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdaf2380000)</div><div> libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007fdaf2150000)</div><div> libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fdaf1f20000)</div><div> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdaf1d18000)</div><div> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdaf1a10000)</div><div> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdaf1708000)</div><div> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdaf14f0000)</div><div> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdaf1128000)</div><div> /lib64/ld-linux-x86-64.so.2 (0x00007fdaf4568000)</div></div><div><br></div><div><br></div><div><div>ldd /usr/bin/clang</div></div><div><br></div><div><div> linux-vdso.so.1 => (0x00007fff62400000)</div><div> libLLVM-3.5.so.1 => /usr/lib/x86_64-linux-gnu/libLLVM-3.5.so.1 (0x00007f0625d88000)</div><div> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0625b68000)</div><div> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0625860000)</div><div> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0625648000)</div><div> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0625280000)</div><div> libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f0625078000)</div><div> libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007f0624e48000)</div><div> libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f0624c18000)</div><div> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0624a10000)</div><div> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0624708000)</div><div> /lib64/ld-linux-x86-64.so.2 (0x00007f06277d0000)</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</div></div>