Thanks Andrew.
Yes, I recognized that the code was buggy and it works fine on x86 but not for
ARM v7 where alignment was mandatory. I was hoping that there would be an easy
way to cheat by using something like -mfix_cortexm3_ldrd but that didn't work
for me. So I fixed the code with a memcpy
On 12/24/2012 07:53 PM, Roger Cruz wrote:
>
>
> I am compiling this piece of code from an open source project that I
> wish not to have to change. The problem is that when compiled for
> ARM, it generates an LDRD instruction, which when executed, causes a
> bus error since the address in ptr is
I am compiling this piece of code from an open source project that I wish not
to have to change. The problem is that when compiled for ARM, it generates an
LDRD instruction, which when executed, causes a bus error since the address in
ptr is not doubleword aligned. I know I can change the co