What's the purpose of the CIL nop opcode?

前端 未结 19 1288
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 10:42

I\'m going through MSIL and noticing there are a lot of nop instructions in the MSIL.

The MSDN article says they take no action and are used to fill space if the opc

19条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 10:54

    Dude! No-op is awesome! It is an instruction that does nothing but consume time. In the dim dark ages you would use it to do microadjustments in timing in critical loops or more importantly as a filler in self-modifying code.

提交回复
热议问题