Why hasn't LLVM/Clang taken over MinGW as the main MSVC alternative on windows yet?

Why hasn't LLVM/Clang taken over MinGW as the main MSVC alternative on windows yet?

Can Clang even target Windows XP?

Windows users are late bloomers.

Because Stallman hates Clang, if they use it they can't claim GCC as GNU's greatest achievement.

Most shit, at least when they come from relatively big companies, are already compiled with Clang I suppose.

Because Intel compiler is years ahead of both MSVC and LLVM

GCC supports more architectures and produces faster code in the majority of cases.

Cool logo, that's all.

>using compilers that will fuck you over for not using intel products
no

>GCC supports more architectures
True
>produces faster code in the majority of cases.
False

>False
False

Clang is pretty smart. Compare the output of this snippet:

#include
#include

struct state {
int val;
};

struct S {
S() : ptr(std::make_unique()) {
ptr->val = 42;
}
std::unique_ptr ptr;
};

std::unique_ptr sink_func(std::unique_ptr ptr) {
printf("%d\n", ptr->val);
return ptr;
}

int main()
{
S s;
printf("%d\n", s.ptr->val);
++s.ptr->val;
sink_func(std::move(s.ptr));
}


While GCC's O2 output still shows calls to new and delete, Clang can optimize that away.

>windows
Because no one gives a fuck about that shit OS anymore.

Clang is 1 year ahead of GCC when it comes to optimization. And Clang's diagnostics is 5 years ahead. GCC is obsolete.

Clang still has quite a few bugs on Windows because nobody that's paid to work on it gives a fuck whether it works on Windows or not. A lot of open source software doesn't work on Windows because Windows is shit and most decent developers refuse to use it.

>Clang is 1 year ahead of GCC when it comes to optimization. And Clang's diagnostics is 5 years ahead. GCC is obsolete.

Unless you compile to ARM

Except a GCC binary still runs faster in two out of three cases, friend.

>Except a GCC binary still runs faster in two out of three cases, friend.
sure, but 9 out of 10 times Clang runs much faster.

It's still like 90% of the desktop market though...

Because it's not free

because the logo is autistic as fuck