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

前端 未结 4 1834
不知归路
不知归路 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:08

    It'll make the stack pointer not able to do its job in some cases. for instance, lets say you had a function which pushed a byte onto the stack and then calls another function. The call will end up trying to write a misaligned return address onto the stack, resulting in an error.

提交回复
热议问题