> -----Ursprüngliche Nachricht-----
> Von: "Eric Engler" <[EMAIL PROTECTED]>
> Gesendet: 17.12.06 18:22:45
> An: [email protected]
> Betreff: Re: [DotGNU] Has the CVM interprerter code been rolled into libjit?


> > > I'd like one program that can convert a file of CIL instructions to a 
> >file
> > > of CVM instructions (this wouldn't be platform specific).
> 
> >The cvm interpreter is not tied to libjit. It's an either jit or cvm. The 
> >CIL instructions
> >depend much on the metadata in the CIL files and so does the generated 
> >code.
> >The tool would have to create a file with all the metadata in the CIL file 
> >and only the instruction streams replaced by cvm code.
> 
> Ok, I think I understand now. This task seems like it must be close to the 
> JVM bytecode generation option, which also has to wrap up the metadata and 
> generate an instruction stream suitable for interpretation?
> 
right

> How does the CVM stream compare to a bytecode stream in terms of suitability 
> to be interpreted?
>
The cvm bytecode is optimized for interptation with help of the verifier.
To interpret the il bytecode a lot checks would have to be done at runtime to 
handle
different cases which is allready done using the cvm bytecode.

> Perhaps the question of CVM vs. Bytecode should hinge on which set of libs 
> are the most suitable?
> 
> Since the PNET libs are written in C, instead of C#, the connection between 
> the interpreter and the libs is made at the native code level, instead of 
> the IL level, so this may present a more efficient runtime. A lib written in 
> C# and compiled to IL has to be interpreted at runtime (assuming no JIT), 
> along with the user code, thereby causing slower execution speed.
> 
The runtime libs are a mixture of native functions and methods implemented in 
IL.
In fact only a small part handling very basic tasks are done in C.

> A Java set of libs is probably similar to the IL model where the libs exist 
> as bytecode that must be interpreted at runtime.

Klaus

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to