William Tracy wrote:
> Hello,
> 
> Is it possible for mcs to compile C# code to ILAsm code? I've been
> hunting all over for a command line switch to do this. :-)

Run monodis or another .NET disassembler on the generated
assembly.

> I was under the impression that all the compilers for the common
> language runtime used ILAsm as a back-end; does Mono's compiler do
> this differently (and therefore have no way of producing ILAsm code)?

Mainstream compilers targeting the CLR never used ilasm as their
last step. They are either using System.Reflection.Emit (mcs,
every other managed compiler) or an equivalent unmanaged API (csc).

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to