C# haikusanyi moja kwa moja kuwa machine code. Inakusanya kuwa IL (Intermediate Language) — bytecode isiyotegemea platform — ambayo CLR inaendesha, ikitumia JIT (Just-In-Time) compilation kutafsiri IL kuwa native machine code wakati wa runtime. AOT (Ahead-Of-Time) ni mbadala ambao hukusanya kuwa native code wakati wa build.
Mfumo wa utekelezaji
C# source (.cs)
│ C# compiler (roslyn)
▼
IL bytecode (in a .dll/.exe assembly) ← platform-INDEPENDENT intermediate code
│ CLR loads it; JIT compiles IL → native code AT RUNTIME (per method, as called)
▼
Native machine code → executes on the CPU
