25launches

Zero C#

C# without a runtime, down to DOS on a 386

0 followers

Visit onurgumus.github.io (opens in a new tab)

Developer ToolsOpen Source

Zero C# compiles C# to small native programs with no .NET runtime and no garbage collector. It uses a fork of bflat's zero mode with its own MIT core library; DOS and WebAssembly builds go through NativeAOT-LLVM. Targets: Linux, macOS, Windows, WebAssembly, DOS on a 386 and UEFI with no OS. A Linux hello world is 16 to 39 KB. You keep generics, spans and lambdas, but lose catchable exceptions, reflection and most of the base library; memory goes in arenas. MIT; the compiler fork is AGPL.