Re: Possible to set the armv7 chip into using unaligned memory accesses?
Re: Possible to set the armv7 chip into using unaligned memory accesses?
- Subject: Re: Possible to set the armv7 chip into using unaligned memory accesses?
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Jan 2012 08:56:41 -0800
On Jan 11, 2012, at 1:11 AM, Andreas Grosam wrote: Unfortunately, I've no idea if you can set a compiler-switch to make an arm v7 CPU to accept unaligned data within Xcode.
It’s not a compiler issue, it’s a runtime issue. Setting a CPU control register has nothing to do with the compiler or toolchain.
Alignment errors may occur when a certain data of a primitive type T (e.g. double, long, ..) or a user defined struct is serialized at a memory address where the CPU is unable to access it, e.g.:
I don’t think the OP’s issue is compiler struct alignment, rather reading values from pointers whose values are computed at runtime.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden