<div dir="ltr"><div><div><div>This might be a better question for mingw devs, but apparently these days GCC itself needs threads for something, and may be built on top of either win32 or posix threads.<br></div><br></div>Vadim<br><br></div>PS: I did some more testing, and it looks like when parallel code generation is actually used (4 threads), the difference becomes >20%.<div><div><div><div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 1:01 PM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="rtl"><div dir="ltr">Hi Vadim,</div><div dir="ltr"><br></div><div dir="ltr">Yes, exactly, what is the point of having two versions -pthreads and -win32threads when you can make -pthreads behave like -win32threads by disabling the use of pthreads etc?</div><span><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></font></span></div><div><div><div class="gmail_extra"><div dir="ltr"><br><div class="gmail_quote">2014-09-26 22:47 GMT+03:00 Vadim Chugunov <span dir="ltr"><<a href="mailto:vadimcn@gmail.com" target="_blank">vadimcn@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"><div><div>When LLVM's configure finds a usable <pthread.h>, it prefers to use that rather than the home-grown stuff.   However if LLVM is configured with --disable-pthreads, both mingw flavors produce the same results.<br><br></div>BTW, I've tried to quantify the slowdown: a quick test indicates that LLVM build that uses pthreads is about 10% slower than the one which doesn't.  This is less that I remember seeing last year (something got optimized?), but still...<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Vadim</font></span><div><div><br></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div></div></div></div>