Understanding partial-register slowdowns from mov instead of movzx instruction [duplicate]

一世执手 提交于 2019-12-20 05:39:17

问题


I'm very new to assembly language and trying to understand some of its working principles. I read this answer and have a question about the following wording:

it avoids performance penalties that may result from writing to only the low 8 (or 16) bits of a register

What kind of performance penalty? Very uclear why writing just the first low 8 or 16 bits of a register is slower than writing the sign-extended version?

来源:https://stackoverflow.com/questions/47052342/understanding-partial-register-slowdowns-from-mov-instead-of-movzx-instruction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!