6 ms·
Lots of x86 code plays fast and loose with alignment which will blow up on ARM.
by kevin_thibedeau 8y ago
Lots of x86 code plays fast and loose with alignment which will blow up on ARM.
- monocasa 8y agoModern big ARMs let you play fast and loose with alignment as well. Hell, a CortexM3 lets you have unaligned loads and stores too.
- jschwartzi 8y agoEven if they don't you can just turn unaligned access emulation on in your OS kernel. This was a thing in QNX and is also a thing in Linux.
- monocasa 8y agoI think it's fair to not want to turn that on in the kernel on chips that don't support it in servers. It's really expensive on those kinds of cores to trap into the kernel (a KPTI makes it dramatically more expensive). That being said, server cores with their long me or pipelines are the most likely to not have an issue with unaligned access, so it's probably a moot point.
- phkahler 8y agoThat software is either poorly written, or has low level stuff that needs to be arch specific or rewritten. Most code does not have this sort of issue.