What is faster: JMP or string of NOPs?

后端 未结 3 728
死守一世寂寞
死守一世寂寞 2020-12-17 17:25

I\'m implementing binary translation and have to deal with sequences of NOPs (0x90) with length about 16 opcodes. Is it better for performance to place JMP (to the end) at s

3条回答
  •  Happy的楠姐
    2020-12-17 18:00

    If the NOPs are to align the stream, then they have more value than just being a NO OP. if your concerned with pure speed, see Agner Fog's Optimization Manuals Vol. 4.

提交回复
热议问题