[Mono-list] existing managed C++-libraries for Mono and whatswith csgl?

Serge serge@wildwestsoftware.com
Thu, 1 Aug 2002 16:39:26 +0300


Hello, 

>> For fun, run ildasm on the resulting executable of the first one. One
>> of the symbols (IIRC) should be _mainCRT (or something similar), which
>
> I have seen this. This little piece of code can always be emulated,
> because it is just the bootstrap piece of code.

I don't think it's a good idea to try to emulate this stuff.
First, it's possible to get rid of CRT startup code using appropriate compiler/linker options
(resulting binary will be pure IL).
Next, to emulate you would need to find managed entry point (in the simplest case, assuming
CRT startup is the only native code in the binary), I have no idea how to do this.
I would simply reject binaries with embedded native code.


Sergey


----- Original Message ----- 
From: "Miguel de Icaza" <miguel@ximian.com>
To: "Jonathan Pryor" <jonpryor@vt.edu>
Cc: "Freddy BL" <freddy_bl@hotmail.com>; "Mono List" <mono-list@ximian.com>
Sent: Thursday, August 01, 2002 12:47 AM
Subject: Re: [Mono-list] existing managed C++-libraries for Mono and whatswith csgl?


> 
> > For fun, run ildasm on the resulting executable of the first one.  One
> > of the symbols (IIRC) should be _mainCRT (or something similar), which
> > looks like it calls into the MSVC native libraries.
> 
> I have seen this.  This little piece of code can always be emulated,
> because it is just the bootstrap piece of code.
> 
> Miguel
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>