What is this flow chart about?

Arshad Nazeer 21 Reputation points
2022-01-24T15:16:54.227+00:00

167952-img-20220124-203433.jpg

Can someone explain this flow chart is about?

Developer technologies | .NET | .NET Runtime
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-01-24T15:53:19.383+00:00

    It looks like someone is trying to explain how Windows runs an EXE. Since Windows doesn't understand .NET it simply runs the EXE which is a PE file. For non-.NET apps that is it. For .NET apps though the EXE is a stub that starts up the CLR that hosts your app. It looks like this diagram is trying to explain that along with a reference to JIT compilation.

    Are you learning .NET? This looks like something someone would use to explain how .NET CLR gets running.

    0 comments No comments

  2. Xingyu Zhao-MSFT 5,381 Reputation points
    2022-01-25T02:55:30.17+00:00

    Hi @Arshad Nazeer ,

    .NET assemblies are Win32 PE files, the operating system doesn’t distinguish between .NET assemblies and Win32 executable binaries, because they are the same normal PE files, so OS validates the file header to check if it’s a managed assembly or not.
    If the file is a .NET assembly, then CLR will load the assembly. For more details you can check : The CLR's Execution Model

    Best Regards,
    Xingyu Zhao
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.