I read topic from google and I understand this:
- Windows loader loads the exe or dll of .net app.
- Then windows loader creates clr for that process.
- Then it locates entry point to application and call it.
- But before that class loader service of clr comes and loads the class containing Main method.
- And then jit compilation takes place.
- The clr provoids services like gc,exception handling,class loading etc to our app.
My questions are:
Now when we run .net app clr locates entry point and starts execution . But when it encounters
Class1 ob = new Class1();
that time how our process calls the service of CLR called as class loader? MSIL code equivalent to is newobj internally calls to clr's class loader service?