On Sun, Feb 1, 2009 at 9:30 AM, wrnsnbrgl <[email protected]> wrote:

>From reading the IL code generated by MS csc.exe, it seems that NOP is
> used in the same way as your label instruction. It does need some code
> space in the IL, but should not have an impact on execution speed, as
> it can be omitted by the JIT compiler...
>

I saw that too using Reflector, it seems to be the main technique. That
makes me think, maybe there is a space for another optimization technique in
Optimize() method in MethodBody,  for removing these extra NOPs and
adjusting the jumps. I don't know how much will be the benefit for the code
size, I think I will investigate further. Probably that can mess with
decompilers, anyway if your project isn't exactly OSS who want the IL to be
understandable by decompilers? :)

Augusto

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to