[Mono-list] mono -> libmono

Jeff Dubrule igor@pobox.com
Sun, 24 Feb 2002 11:55:00 -0500

Has any work been done on encapsulating mono into a library, and
providing an API so that other programs can use it internally?

I'm interested in using mono to replace a VM in an existing program
which uses its own compiler/bytecode/vm system to run code in its own
language.  I'd like to do this by taking the existing compiler, and
rewriting the code-generator portion to produce CIL bytecodes, then
use mono to execute them.

It would be most convenient for me to be able to write, say:

MonoCode * f = mono_compile(chunk_of_cil_bytecode);
mono_add_class_method("foo", "bar", f);
mono_call_class_method("foo", "bar");

Or something similar.