Skip to content

C sharp

C

compiles source code to CIL during compile time
the C Sharp Compiler csc.exelives in the .NET Framework install folder.
CIL can be found in the .exe and .dll binaries. assembly
each machine gets the same assembly (.exe file).
but machines and CPUs are different, so on execution the CLR translates the CIL to instructions for the machine it runs on. This execution is called runtime.

```mermaid graph TD
graph LR

subgraph source code
b1
end

subgraph Byte code
b2
end

subgraph Machine code
b3
end

b1(c# code)–> |c# compiler|b2(CIL code)–>|CLR|b3(native code)
c1(design time)–>c2(compile time)–>c3(runtime)
```

terms

source code
byte code
c# code
c# compiler
CIL code
compile time
CLR
machine code
native code
runtime

programming