Microsoft Wired Up Clang's Parser To Their Own Code Generator

Written by Michael Larabel in Microsoft on 7 December 2015 at 07:35 AM EST. 3 Comments
MICROSOFT
Microsoft announced that they've developed support in Microsoft Visual Studio for making use of LLVM's Clang parser but to then use the optimizers and code generators from Microsoft Visual C++ rather than LLVM.

It's a similar but reverse concept to the previous LLVM DragonEgg project to replace GCC's optimizers and code generators with those from LLVM. Except in this Microsoft case, it's using Clang on the front and then tieing in Microsoft's mature optimizers and code generators.

With this route you can then use the Clang parser at least on your code-base across all platforms. This also allows for features not currently supported by Microsoft's Visual C++ to then be exposed: Microsoft's Dave Bartolomeo explained, "your code can take advantage of language features that are not currently available in the Visual C++ compiler, including C99 complex types and C++14 extended constexpr support. And because the Clang-based compiler generates the same debug information format as the Visual C++ compiler, you'll still be able to debug your code with the same great Visual Studio debugger experience."

Microsoft is looking at contributing back a majority of their LLVM / Clang changes back to the project.

More details via Microsoft's MSDN blog.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week