> I'm not sure how it works with Cecil, but the typical compiler > technique is to have a "label" pseudo-instruction which is the target > of all branching instructions (including br, leave, switch, etc.).
>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... BTW this is how I do it, too: create a NOP somewhere and let jump/ branch code reference that NOP. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
