How onurgumus/zero-csharp works
Zero C# is a small-runtime C# platform for producing native programs across desktop, web, firmware, and constrained hardware targets. The principal workflow is to start a project from a template, compile C# against the zero-mode libraries and runtime, and run the resulting program on a supported target. The repository also includes source generators, a bitcode conversion tool, and substantial library capabilities such as I/O, collections, text, time, and concurrency. Edges are limited to README statements and relationships visible in indexed excerpts; unsampled target and library internals are not inferred.
Main entry points: ZeroCSharp.Generate/Program.cs Source generators · Unsafe.cs Memory intrinsics · zero/Program.cs Project templates · Startup.cs Runtime startup
Components 27
Project authoring
- Project templates
sdk/ZeroCSharp.Templates/content/zero/Program.cs
Compilation tools
- Source generators
sdk/ZeroCSharp.Generate/Program.cs - JSON generator
sdk/ZeroCSharp.Json/JsonGenerator.cs - XML generator
sdk/ZeroCSharp.Xml/XmlGenerator.cs - Bitcode converter
sdk/ZeroCSharp.Bitcode/Program.cs
Zero runtime
- Runtime startup
zerocore/Runtime/Startup.cs - Runtime exports
zerocore/Runtime/RuntimeExports.cs - Memory intrinsics
zerocore/Runtime/Unsafe.cs - Environment
zerocore/System/Environment.cs
Core libraries
- Arrays and spans
zerocore/System/Array.cs - Span operations
zerocore/System/Span.cs - Dictionary
zerocore/System/Collections/Generic/Dictionary.cs - Conversions
zerocore/System/Convert.cs - Date and time
zerocore/System/DateTime.cs - Decimal arithmetic
zerocore/System/Decimal.cs - Math
zerocore/System/Math.cs - String builder
zerocore/System/Text/StringBuilder.cs - Threading primitives
zerocore/System/Threading.cs - Console I/O
lib/Console.cs - Output buffering
lib/Out.cs - File access
lib/File.cs - Directory access
lib/Directory.cs - Async tasks
lib/Tasks.cs
Runtime targets
- Platform runtimes
arm/rp2350.c - GPU kernels
gpu/cuda.c
Other components
- C# developer
- bflat compiler
Connections 17
- C# developer → Project templates: starts project
- Project templates → bflat compiler: builds with
- bflat compiler → Runtime startup: runs program
- Source generators → JSON generator: runs generator
sdk/ZeroCSharp.Generate/Program.cs - Source generators → XML generator: runs generator
sdk/ZeroCSharp.Generate/Program.cs - C# developer → Source generators: generates code
sdk/ZeroCSharp.Generate/Program.cs - C# developer → Bitcode converter: converts bitcode
sdk/ZeroCSharp.Bitcode/Program.cs - Runtime startup → Runtime exports: uses exports
zerocore/Runtime/Startup.cs - Environment → Memory intrinsics: uses intrinsics
zerocore/System/Environment.cs - Arrays and spans → Memory intrinsics: uses intrinsics
zerocore/System/Array.cs - Span operations → Arrays and spans: accesses array data
zerocore/System/Span.cs - String builder → Span operations: uses spans
zerocore/System/Text/StringBuilder.cs - Threading primitives → Memory intrinsics: uses intrinsics
zerocore/System/Threading.cs - Console I/O → Output buffering: writes through
lib/Console.cs - Async tasks → Threading primitives: uses threading
lib/Tasks.cs - Platform runtimes → bflat compiler: targeted by
- GPU kernels → Bitcode converter: kernels through