Does unaligned memory access always cause bus errors?

后端 未结 3 1664
予麋鹿
予麋鹿 2020-11-28 13:39

According to the Wikipedia page Segmentation fault, a bus error can be caused by unaligned memory access. The article gives an example about how to trigger a bus er

3条回答
  •  隐瞒了意图╮
    2020-11-28 14:16

    It very much depends on the chip architecture. x86 and POWER are very forgiving, Sparc, Itanium and VAX throw different exceptions.

提交回复
热议问题