Linked by Michael on Tue 29th Mar 2011 23:53 UTC
Benchmarks "Version 4.6 of GCC was released over the weekend with a multitude of improvements and version 2.9 of the Low-Level Virtual Machine is due out in early April with its share of improvements. How though do these two leading open-source compilers compare? In this article we are providing benchmarks of GCC 4.5.2, GCC 4.6.0, DragonEgg with LLVM 2.9, and Clang with LLVM 2.9 across five distinct AMD/Intel systems to see how the compiler performance compares."
Thread beginning with comment 468257
To read all comments associated with this story, please click here.
Clang on Windows
by copx on Wed 30th Mar 2011 00:11 UTC
copx
Member since:
2008-02-05

I always wanted to try clang, but there are no Windows binaries. Are there any plans to fully support Windows in future?

Reply Score: 2

RE: Clang on Windows
by phreck on Wed 30th Mar 2011 08:42 in reply to "Clang on Windows"
phreck Member since:
2009-08-13

There have been windows binaries since 1.8, provided for MinGW. And if you would have typed "llvm windows", then right the first result would have been a howto on llvm in MSVC.

Reply Parent Score: 1

RE[2]: Clang on Windows
by copx on Wed 30th Mar 2011 09:19 in reply to "RE: Clang on Windows"
copx Member since:
2008-02-05

There have been windows binaries since 1.8, provided for MinGW.


No. There are LLVM binaries. LLVM and clang are two different beasts. clang uses LLVM but LLVM can also be used with GCC - those binaries are LLVM-GCC binaries, not clang. There are no clang binaries for Windows on the official site and further research has revealed that basically there is no support. Nobody in the dev team uses or even just builds and tests on Windows. There are Windows makefiles which may or may not work for any given version and basically things are expected to crash and burn on that platform because there is zero testing. Not really surprising given that this is an Apple sponsored project ;)


And if you would have typed "llvm windows", then right the first result would have been a howto on llvm in MSVC.


I knew about that site just like I knew about the LLVM-GCC binaries. I asked for clang binaries and real Windows support.

Reply Parent Score: 3

RE: Clang on Windows
by ba1l on Wed 30th Mar 2011 16:25 in reply to "Clang on Windows"
ba1l Member since:
2007-09-08

There aren't any binaries that I could see, but Clang apparently does work on Windows. You'd just have to build it yourself, using either Visual Studio (don't know if the Windows SDK or VS Express versions work, but I'd assume so) or GCC.

It has support for generating Windows binaries, has support for some Windows-isms (the same ones GCC supports). They're apparently working on supporting more MSVC extensions, so it can compile against Microsoft's headers instead of the MinGW ones, and are working on a compiler driver compatible with cl.exe.

It looks like they have enough developer interest to make Clang work well on Windows, so it should get better, even if it's not there yet.

(I've not actually tried it though. For all I know, it doesn't work yet - I'm just going by their web site).

Reply Parent Score: 3