[Mono-list] ILAsm output from mcs
Robert Jordan
robertj at gmx.net
Sun Aug 5 16:58:36 EDT 2007
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
More information about the Mono-list
mailing list