[Mono-list] Why mono_marshal_get_runtime_invoke() ?

Vivek, Bharath Varma (IE10) Vivek.Varma@honeywell.com
Fri, 4 Jul 2003 12:06:32 -0700


There are two (related) reasons why:
>>1: CIL uses the .entrypoint instruction to specify the entry point, not
    the function name.  
>>2: Consider an assembly that has multiple "Main" functions.  
Good points! But the entry point token is part of the CLI Header in the PE
file, and that's where the mono runtime looks for the entry point.
Also, even with the dynamic IL wrapper scheme I was talking about, the entry
point should be known! 

Thanks
Vivek