Zero C#
Compile C# code into small executables without a .NET runtime or garbage collector.
What does it do?
Write C# source and build it for the target environment to create a program that does not need a separate .NET runtime installation. It describes native programs for Linux, macOS, and Windows, as well as WebAssembly WASI modules and builds for 386 DOS. Memory is allocated in arenas by lifetime and released together instead of using a garbage collector. It also provides libraries for writing strings directly to output buffers and reading input as spans, plus arena-based List and Dict collections. Exception handling and asynchronous features behave differently from those in a typical .NET program.
Key features
- Compile C# code into small native programs without a .NET runtime
- Build for Linux, macOS, Windows, WASI, and 386 DOS
- Allocate memory in arenas and release it in batches
- Use output buffers and spans for string input and output
- Provide List and Dict collections stored in arenas