What is the difference between normal and shortfor

2019-02-22 03:05发布

I am going through various opcodes in CIL and I find a lot of similar looking codes like Beq,Beq_S Bge,Bge_S Bgt,Bgt_S Br,Br_S

Where S is supposedly "short form". What does that mean??

标签: cil
1条回答
Explosion°爆炸
2楼-- · 2019-02-22 03:40

The short forms of the instructions take up less space (that is, the binary encoding of the CIL instructions are themselves shorter, so your assembly will take up less space on disk or in memory). Therefore, they would typically be preferred when applicable. However, the tradeoff is that they have limited ranges compared to the full forms of the instructions (e.g. branch target offsets must fit within bytes instead of ints).

查看更多
登录 后发表回答