<div dir="ltr">I just noticed that assert is turned on even in Release on Windows<div>Is that on purpose? (seems like a bug to me)</div><div><br></div><div>Anyway if I build clang with "LLVM_ENABLE_ASSERTIONS:BOOL=OFF" the build get stuck at verifier.cpp from LLVMCore. CL.exe is stuck in an infinite loop.</div><div><br></div><div>I am using MSVC 2013 Update 5.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 30, 2015 at 10:30 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">You said you configured in release mode, but assertions might still be on. That accounts for a 2x slowdown. Otherwise I'd say that we haven't profiled and optimized clang on windows very much.</p>
<p dir="ltr">Sent from phone</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On May 29, 2015 4:51 PM, "Edward Diener" <<a href="mailto:eldlistmailingz@tropicsoft.com" target="_blank">eldlistmailingz@tropicsoft.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I test Boost libraries mostly on Windows using various version of gcc 4.3 and up, VC++ 8.0 and up, and the latest version of clang which I build from source using mingw/gcc-4.8.1 in release mode.<br>
<br>
While clang is a great compiler when it comes to testing code, getting intelligent error message, and implementing the latest C++ standard, it is noticably slower ( 2x or 3x at minimum ) than the other compilers I use.<br>
<br>
The clang command line parameters usually being used are usually along the lines of:<br>
<br>
-c -x c++ -O0 -g -fno-inline -Wall -g -march=i686 -m32<br>
<br>
with the addition of 'std=c++11' occasionally depending on the test.<br>
<br>
Does anybody have any idea why clang is so much slower than any of the other compilers I use ? It does not seem to matter whether it is in C++03 mode or C++11 mode, it is noticeably slower than the other compilers.<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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>
</blockquote></div>
</div></div><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>