* The Mono runtime The Mono runtime engine is considered feature complete. It implements a Just-in-Time compiler engine for the CIL virtual machine, the class loader, the garbage collector, threading system and metadata access libraries. We currently have two runtimes: We are using the Boehm conservative garbage collector. The Mono runtime can be used as a stand-alone process, or it can be embedded into applications (see the documentation in mono/samples/embed for more details). Embedding the Mono runtime allows applications to be extended in C# while reusing all of the existing C and C++ code. Paolo Molaro did a presentation on the current JIT engine and the new JIT engine. You can find his slides here ** Current JIT Engine: technical details (updated, June 28th, 2003) We have re-written our JIT compiler. We wanted to support a number of features that were missing: The JIT engine implements a number of optimizations: There are a couple of books that deal with this technique: "A Retargetable C Compiler" and "Advanced Compiler Design and Implementation" are good references. You can also get a technical description of lbrug. The new JIT engines uses three intermediate representations: the source is the CIL which is transformed into a forest of trees; This is fed into a BURS instruction selector that generates the final low-level intermediate representation. The instruction selector is documented in the following papers: ** Garbage Collection We are using the Boehm conservative GC. We might consider adopting other GC engines in the future, like the Intel ORP GC engine. The Intel ORP GC engine as it provides a precise garbage collector engine, similar to what is available on the .NET environment. ** IO and threading The ECMA runtime and the .NET runtime assume an IO model and a threading model that is very similar to the Win32 API. Dick Porter has developed WAPI: the Mono abstraction layer that allows our runtime to execute code that depend on this behaviour. ** Useful links Paolo Molaro found a few interesting links: ** PInvoke PInvoke is the mechanism we are using to wrap Unix API calls as well as talking to system libraries. Initially we used libffi, but it was fairly slow, so we have reused parts of the JIT work to create efficient PInvoke trampolines. ** Remoting Mono has support for remoting and proxy objects, just like .NET does. The runtime provides these facilities. ** Porting If you are interested in porting the Mono runtime to other platforms, you might find the pre-compiled Mono regression test suite useful to debug your implementation. * COM and XPCOM We plan on adding support for XPCOM on Unix and COM on Microsoft Windows later in our development process.