The simple understanding of .NET applications and processes
LU_YI_MING (_AT_) sina.com 2004.11.4
1. The .NET application is loaded and eventually turns into a normal process, Windows treats, such as scheduling and exception processing according to the normal process.
2. The .NET application is compiled and forms IL encoding (not the X86 machine code plus C function call).
3. .NET application (after real-time compile to x86 code) All basic calls are implemented through the .NET class library entry, .NET class library entry checks the legitimacy, then further calls the functions of the traditional operating system Or COM entry.
4. The load process of .NET application: Create a process, mapping the .NET's support library to the process address space, put the application's IL encoding into the process memory space, call a .NET's support library a start function From this function to analyze the IL encoding, record all IL function portals as the unchecked, then compile the function main into the X86 machine code, start calling main, MAIN, call other functions, then compile. This way is called hosting. The operating system is treated in accordance with the runtime of the entire program.