[Mono-dev] ilasm as a library

Andreas Nahr ClassDevelopment at A-SoftTech.com
Sun May 16 19:00:56 EDT 2010

> Actually I did not mention IKVM.Reflection.Emit, nor Mono Cecil (old
> and
> new), and so on because for now I'm after a temporary solution, in the
> form
> of in-memory IL compilation (none of the CIL-emit libraries address
> this use
> case).

I'm not sure what you are trying to achieve. CLI is developed with support
for multiple languages and System.Reflection.Emit is at the very core of it.
And of course System.Reflection.Emit can compile CIL in-memory (e.g. with
DynamicMethod, Dynamic assembly). Using System.Reflection.Emit is no more
complicated (in fact I tend to say it's even more simple) than generating
arbitrary .il(dasm) files. And it saves an entire level of indirection.
Which use case do you see for a "temporary solution" using .il files?

> Given that Microsoft's ilasm can only be invoked as a command-line tool,
> it
> would be great if Mono ilasm would sport a homepage showing off this
> capability (I for one would find a code example or two very useful).

My guess is that if you want modifications (that would be needed) of ilasm
you will have to do them yourself because they won't be of much use for
anybody else.

Happy hacking

More information about the Mono-devel-list mailing list