Why does the Mac ABI require 16-byte stack alignment for x86-32?

前端 未结 10 2189
野趣味
野趣味 2020-11-27 16:01

I can understand this requirement for the old PPC RISC systems and even for x86-64, but for the old tried-and-true x86? In this case, the stack needs to be aligned on 4 byte

10条回答
  •  感情败类
    2020-11-27 16:41

    In order to maintain consistency in kernel. This allows the same kernel to be booted on multiple architectures without modicfication.

提交回复
热议问题