Recently I started reading about .NET reorganization details (mostly through .NET Core github pages). It seams that they created sibling projects to support more platforms. While reading I have the impression that CoreCLR and CoreRT is a new OpenSource version of propriety Roslyn compiler. CoreRT provides native (AOT) compilation. And LLILC is an alternative implementation directing LLVM framework.
Can anyone confirm and describe the differences and goals of this projects from the user perspective? Why someone would use Roslyn in the future instead of CoreCLR?
Roslyn is a compiler platform that enables you to build static and dynamic analysis tools and custom language extensions and transformations for the C# and VB programming languages.It also enables you to embed these languages within other languages or applications. Roslyn includes the C# and VB compilers and other tools. These compilers emit Common Intermediate Language (CIL) code.
To run this code, CIL has to be compiled into binary code that the target computer architecture can execute. .NET currently provides three ways to do this:
LLILC is a CIL compiler based on the portable LLVM compiler framework. It can be used to build JIT (current) and AOT (future) compilers. The advantage of this compiler is that it leverages the Clang C++ compiler optimizations and brings the LLVM extensibility model (analysis and optimization passes) to .NET.
CoreRT and LLILC are new projects and still in early development stage and require a lot more work to support production applications. So if you are a user and not a contributor, CoreCLR and Roslyn are for you. Again, CoreCLR is the runtime while Roslyn is the C# and VB compilers.