[Mono-list] Mono Execution Start

Vivek, Bharath Varma (IE10) Vivek.Varma@honeywell.com
Wed, 2 Jul 2003 10:06:57 -0700

Hamza Karamali wrote:

>>I'm trying to wade through the mono source code to try and get a feel for
>>what is going on.  I can't seem to pinpoint where exactly execution is
>>transferred to when I type "mono helloworld.exe", for example.  Could
>>someone please point me in the right direction?

Assuming you have the source code for Rel0.25, you will find the entry point
in mono-0.25/mono/mini/main.c, which in turn calls the function "mono_main"
in driver.c in the same directory, and then things start rolling....

Actual execution of the helloworld application's "Main" will happen on a
separate thread which executes the function "main_thread_handler" in
driver.c. This thread is created in the function
mono_runtime_exec_managed_code, in mono-0.25/mono/metadata/object.c. 

Hope this helps in some way!