![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, I have a quesion regadring what happens when my "Hello World" program starts up. I have a hard time visualiszing this. Lets suppose I have a Simple Console based Hello World EXE program. When I run this from command line what are the steps that it goes through to |
|
Thanks Sreeharsha. |
#3
| |||
| |||
|
|
Here is a simplified version of what happens: The OS loader checks for managed modules by examining a bit in the common object file format (COFF) header. The bit being set denotes a managed module. If the loader detects managed modules, it loads mscoree.dll, and _CorValidateImage and _CorImageUnloading notify the loader when the managed module images are loaded and unloaded. _CorValidateImage performs the following actions: 1.. Ensures that the code is valid managed code. 2.. Changes the entry point in the image to an entry point in the runtime. 3.. The entry point is Jitted and execution in your app begins. -- Chris Rolon This posting is provided "AS IS" with no warranties, and confers no rights. "Sreeharsha" <sreeharsha75 (AT) yahoo (DOT) com> wrote in message news:3DC4D531-3B97-4649-98E9-69C4F0173894 (AT) microsoft (DOT) com... Hi there, I have a quesion regadring what happens when my "Hello World" program starts up. I have a hard time visualiszing this. Lets suppose I have a Simple Console based Hello World EXE program. When I run this from command line what are the steps that it goes through to execute the program. I guess CLR has to be started before running this program. Please help me on this basic question. Thanks Sreeharsha. |
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |