Vision
What csharpc is for, its goals and its non-goals.
openLLVM FRONT-END // C# 14 // .NET 11
csharpc compiles C# source, and .NET libraries shipped as IL, straight to small, fast, hardened native executables:
what clang is to C and rustc to Rust. Use it on its own, or as the AOT layer behind PublishAot.
compile path
Roslyn's control-flow graph is csharpc's mid-level IR; everything between it and LLVM is csharpc.
.cs files, a .csproj, or DLLs and NuGet packages read through the IL front-end.
Parsing, binding and every diagnostic, exactly the official compiler's.
Generics, closures, async, exceptions and reflection metadata, one partial per feature.
The program, the C# corelib and the csrt runtime optimized together.
One hardened file: no JIT, no CoreCLR, no IL at run time.
the one rule
A program compiled by csharpc behaves exactly like the same program under .NET: byte-identical stdout and the same
exit code. Every test is recorded from dotnet run, or from NativeAOT where the two differ, and anything
csharpc cannot do yet is an explicit diagnostic.
What csharpc is for, its goals and its non-goals.
openThe pipeline, its phases and how the pieces fit together.
opencsrt: the GC, exception dispatch, threads and the C / C# boundary.
open.csproj input and dotnet build / run / publish integration.
openEvery test is recorded from real .NET and compared byte for byte.
openMilestones, the feature-support matrix and what comes next.
openquick start
Linux, macOS or Windows with the .NET 11 SDK, LLVM 18 and clang. Setup per platform is in the drop-in guide.