[Mono-dev] C# to x86 assembly code?

Auge Mike tobe_better at hotmail.com
Mon Sep 18 15:22:46 EDT 2006


Hi Marcos,

Yes this can help! But what I am looking for is something like the following 
code. Is there any possibility to achive that while debugging mono 
application ??

Thanx in advance :)

int Add(int x, int y)
{
00000000  push        edi
00000001  push        esi
00000002  push        ebx
00000003  push        ebp
00000004  mov         ebx,ecx
00000006  mov         esi,edx
00000008  cmp         dword ptr ds:[001AA30Ch],0
0000000f  je          00000016
00000011  call        769AF339

00000016  xor         edi,edi
00000018  xor         ebp,ebp
    int z = x+y;
  IL_0000:  ldarg.0
  IL_0001:  ldarg.1
  IL_0002:  add
0000001a  lea         eax,[ebx+esi]

  IL_0003:  stloc.1
0000001d  mov         ebp,eax

    return z;
  IL_0004:  ldloc.1
  IL_0005:  stloc.0
0000001f  mov         edi,ebp
}

  IL_0006:  ldloc.0
  IL_0007:  ret
00000021  mov         eax,edi

00000023  pop         ebp
00000024  pop         ebx
00000025  pop         esi
00000026  pop         edi
00000027  ret



>From: "Marcos Cobeña" <marcoscobena at gmail.com>
>To: "Auge Mike" <tobe_better at hotmail.com>
>CC: mono-devel-list at lists.ximian.com
>Subject: Re: [Mono-dev] C# to x86 assembly code?
>Date: Mon, 18 Sep 2006 20:44:50 +0200
>
>Hi Auge,
>
>You can currently use Mono AOT compilation (Ahead-Of-Time; "mono
>--aot" I think) in order to get a precompiled binary, It'll cause your
>application to run faster, between some other things.
>
>Hope this helps.
>
>Regards,
>
>2006/9/18, Auge Mike <tobe_better at hotmail.com>:
>>Hi all,
>>
>>I want to know if there is a tool to compile a C# program into a x86
>>assembly code?
>>
>>Thanx in advance,
>>
>>
>>_______________________________________________
>>Mono-devel-list mailing list
>>Mono-devel-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>
>
>--
>Marcos - http://www.youcannoteatbits.org





More information about the Mono-devel-list mailing list