Hi,
I need some basic low level details of what happens when you ngen a .NET assembly.
Lets take a c++ code which when compiled creates a binary executable. On executing this binary, the OS allocates memory for the process and executes it. No concept of runtime or CLR here. Everything is present in the binary.
I read the MSDN and understand that .NGEN creates a native image of the code and avoids JIT compilation while execution by the CLR. Hence, at the end, I understand that the ngen creates binary code for specific processor.
If the native code (binary) is ready then why cant the OS take care of executing it and why the .NET runtime has to do the execution What does the CLR do then for a ngended assembly
I seem to get confused with this concept.Please clarify.
Thanks, Mani
.NET Development8
|