Complilation and Execution of .Net Assembly
  • When you compile a .NET application it is converted into managed module or MSIL (.exe or .dll)

    The assembly contain at lease one .exe file that has been designated as the entry point for the application.

    When execution of your program begins, the assembly is loaded into memory
    At this time the CLR examines the assembly manifest and determines the requirements to run the program.

    It examines security permissions requested by the assembly and compares them to the system’s security policy.

    If the system’s security policy does not allow the requested permissions, the application will not run

    If the application passes the system’s security policy, the CLR executes the code.

    When execution starts, the Just-In-Time (JIT) compiler of CLR compiles the IL code into native code and now native code is loaded in memory to execute.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week