Dummy operations handling of Intel processor

前端 未结 3 1513
庸人自扰
庸人自扰 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:29

    There's very little need for optimizing sequences of no-ops on the x86 architecture because it has no-op encodings of varying lengths. Instead of many one-byte no-ops, one can just use a single multi-byte no-op. Somewhat more work for the decoder, but the actual execution units only see a single instruction to execute.

提交回复
热议问题