[Mono-dev] ilasm as a library

Miguel Garcia miguel.garcia at tuhh.de
Sun May 16 09:22:29 EDT 2010


I wanted to see how gmcs generates assemblies, given that I want to do the same for the Scala.Net compiler [1] (which as of now generates .il files). 

I started exploring codegen.cs and found a reference to Mono.CompilerServices.SymbolWriter . That may save an intermediate step, but how about programmatically invoking the Mono IL Assembler [2] passing an in-memory .il file as input? (and BTW, can Jay generate C#-only parsers?) 

A code snippet on how to use Mono's ilasm as a component would be most welcome! 


[1] http://lamp.epfl.ch/~magarcia/ScalaCompilerCornerReloaded

[2] http://anonsvn.mono-project.com/viewvc/trunk/mcs/ilasm/ 

Miguel Garcia                                   
Swiss Federal Institute of Technology
EPFL - IC - LAMP1 - INR 328 - Station 14
CH-1015 Lausanne - Switzerland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100516/6eb418f4/attachment.html 

More information about the Mono-devel-list mailing list