MSIL 操作码:br 与 br.s?
MSIL opcode: br vs br.s?
MSIL 操作码之间有什么区别:br 和 br.s?
0x38 br Branch to target.
对
0x2B br.s Branch to target, short form.
The target instruction is represented as a 1-byte signed offset from the beginning of the instruction following the current instruction.
不同之处在于目标的大小,大多数跳转发生在一个位置附近,因此优化此指令的大小是有意义的,减少 IL 的总大小,这可能有几个好处(更快的加载时间,较小 .dll
尺寸等)
MSIL 操作码之间有什么区别:br 和 br.s?
0x38 br Branch to target.
对
0x2B br.s Branch to target, short form.
The target instruction is represented as a 1-byte signed offset from the beginning of the instruction following the current instruction.
不同之处在于目标的大小,大多数跳转发生在一个位置附近,因此优化此指令的大小是有意义的,减少 IL 的总大小,这可能有几个好处(更快的加载时间,较小 .dll
尺寸等)