c# - What are the processes that the .net compiler does in order to compile code? -


first want i'm not sure if best stack-exchange site post type of question i'm not sure fit best. anyway questions title's says want know steps .net compiler when converting c# code machine language one. i've watched videos there stuff still don't quite understand. leave question's @ bottom , try specific possible.

here's understanding of how .net compiler works

my c# code -> il -> jit -> assembler code

  1. what exact term of "my c# code" ?
  2. what use of clr in here ?
  3. is entire process handled clr or comes in ?
  4. what metadata ?
  5. is there additional happens in between transition step 1 step 2 , step 2 step 3 or it's code being translated lower-level language ?

  1. just c# (c# -> roslyn (or csc) -> il -> jit -> native)
  2. the clr reads il, jit's , holds gc (and much, more doesn't pertain question)
  3. the clr runs compiled code. c# compilation done through normal compiler (which csc.exe, deprecated roslyn).
  4. there plenty of examples state metadata is
  5. there lot goes on in steps, primary flow.

Comments