Why is it not possible to push a byte onto a stack on Pentium IA-32?

前端 未结 4 1826
不知归路
不知归路 2020-12-03 14:43

I\'ve come to learn that you cannot push a byte directly onto the Intel Pentium\'s stack, can anyone explain this to me please?

The reason that I\'ve been given is b

4条回答
  •  [愿得一人]
    2020-12-03 15:04

    The stack pointer must be (for some optimalization reasons) 4B aligned -> it should be divisible by four (and, therefore, have last 2 bits zero).

提交回复
热议问题