<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 11:59 PM, Igor Vagulin <span dir="ltr"><<a href="mailto:igor.vagulin@gmail.com" target="_blank">igor.vagulin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
We are evaluating switch to clang from gcc for our c++ application.<br>
Main focus is compilation speed, but we also look at address/memory<br>
sanitizer, c++11 support and c++ modules. I've tried to compile our<br>
project with clang++ but resulting compilation time is more than with<br>
gcc. Can someone give me a hint where might be a problem?<br>
<br>
Our project is bunch of ace-tao corba servants. Overall time with<br>
clang++ is about twice more than with gcc. To reproduce problem I<br>
preprocesssed one file and then compile it, result same - twice longer<br>
compilation. Don't know where to look further.<br></blockquote><div><br></div><div>If you're lucky, someone might look for you if you attach (or link to, if it's too big to attach) an example of the problem.<br>
<br>Otherwise, you might want to get started with a profiler and see where the hot parts of Clang/LLVM are in your example.<br><br>(also, consider trying with Clang top of tree (straight from svn/git) - the project moves fairly quickly)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[root@ivagulin-pc ~]# time clang++ -c RemoveClusterObserverClang.cpp<br>
real    0m1.283s<br>
user    0m1.254s<br>
sys    0m0.024s<br>
[root@ivagulin-pc ~]# time g++ -c RemoveClusterObserverGcc.cpp<br>
real    0m0.576s<br>
user    0m0.524s<br>
sys    0m0.048s<br>
<br>
I use llvm-3.3 and cfe-3.3 compiled with folowing options. Sources of<br>
RemoveClusterObserver*cpp attached.<br>
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release<br>
'-DCMAKE_CXX_FLAGS_RELEASE=-O3 -g -mtune=amdfam10 -march=i686'<br>
'-DCMAKE_C_FLAGS_RELEASE=-O3 -g -mtune=amdfam10 -march=i686'<br>
-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-Wl,--as-needed -Wl,--strip-all'<br>
'-DCMAKE_MODULE_LINKER_FLAGS_RELEASE=-Wl,--as-needed -Wl,--strip-all'<br>
'-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=-Wl,--as-needed -Wl,--strip-all<br>
-shared' -DCMAKE_SKIP_RPATH=YES -DBUILD_SHARED_LIBS=YES<br>
-DLLVM_ENABLE_TIMESTAMPS=NO ..<br>
<span class="HOEnZb"><font color="#888888"><br>
Igor Vagulin<br>
</font></span><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>