[Mono-dev] Patch for ilasm (ldc.i4 opt)

Rodrigo Kumpera kumpera at gmail.com
Fri Mar 19 09:57:07 EDT 2010


On Wed, Mar 17, 2010 at 2:22 PM, Thierry Lafage <thierry.lafage at inria.fr>wrote:

> Hi all,
>
> Here is a small patch for ilasm which makes it replace ldc.i4 with short
> forms when possible.
> Note that I'm a C# and monodevelop newbie (but I tried to respect the
> coding guidelines).
> I suggest to add the "-opt:ldc" because I would like to add the same kind
> of optimization for ldloc/stloc (use short forms when possible). For this
> latter one, the command line option could be "-opt:loc" (and we could add
> "-opt:all" to enable both at once).
> I think the impact of such a patch is quite limited, but it's important for
> us (the gcc4cli team) since we rely on ilasm to assemble the CIL code
> produced by our compiler. And these "optimizations" tasks are better suited
> to the assembler than to the compiler itself.
>
>
It's worth mentioning one thing thou. I don't think it's very advisable for
you guys to spend time on the current MSIL assembler.
We're trying to get rid of PEAPI in favor of a Cecil based version. We just
haven't really got enough resources to do all of it.

Rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100319/64da713b/attachment.html 


More information about the Mono-devel-list mailing list