|
|
|
|
|
by __david__
4803 days ago
|
|
> It's in fact very, very difficult to find a platform where that example won't work No, it isn't. Many ARM processors will bus error on that code if (foo & 3) != 0. I believe PowerPC doesn't do unaligned word reads either... It quite often has to do with the memory controller and not with the particular processor, though I believe x86 has to support unaligned reads. I've certainly worked first hand with ARMs that did not support it. |
|
Would
also result in a bus error? Why?