8 ms·
Not just the memory model, unaligned word/dword accesses would be tricky too I think? Doesn't ARM usually silently give you garbage when you load or store a mul
by 0x0 9y ago
Not just the memory model, unaligned word/dword accesses would be tricky too I think? Doesn't ARM usually silently give you garbage when you load or store a multibyte item into a register unaligned?
- tjalfi 9y agoARMv6 added unaligned support[0]. [0] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15414.html http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....
- dis-sys 9y agoIn linux, you get a nice SIGBUS for unaligned memory access.
- 0x0 9y agoIt looks like that's not the default, though? https://www.kernel.org/doc/Documentation/arm/mem_alignment https://www.kernel.org/doc/Documentation/arm/mem_alignment