[fpc-pascal] Bus error in ARM architecture
Bernd Mueller
mueller.b at gmx.net
Thu Sep 18 14:21:26 CEST 2008
Florian Klaempfl wrote:
>>
>> They also asked me to send them some code which illustrates the
>> problem, which they claim should not exist because the compiler should
>> make sure everything is aligned.
>
> FPC does too as long as you don't force the compiler to use a certain
> memory layout like using the packed keyword or casting unaligned
> pointers like plongint(100003)^:=1234;
what do you think about http://bugs.freepascal.org/view.php?id=12137 ?
IMO the unaligned directive should not be required in this case to "fix"
the bug.
Regards, Bernd.
More information about the fpc-pascal
mailing list