Dummy operations handling of Intel processor

前端 未结 3 1478
庸人自扰
庸人自扰 2021-01-14 23:56

Admittedly, I have a bit silly question. Basically, I am wondering if there are some special mechanisms provided by Intel processors to efficiently execute a series of dummy

3条回答
  •  星月不相逢
    2021-01-15 00:50

    No. They are decoded and executed as normal instructions; there is hardware support to remove the false dependency that would otherwise be introduced on the EAX register for the single byte NOP, 0x90 (which is really xchg eax, eax), but that's all.

    Reference: Intel(R) 64 and IA-32 Architectures Optimization Reference Manual - section 3.5.1.8, "Using NOPs".

提交回复
热议问题