[fpc-pascal] Bus error in ARM architecture

Florian Klaempfl florian at freepascal.org
Thu Sep 18 14:21:12 CEST 2008


Bernd Mueller schrieb:
> 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.

Indeed, but did anybody investigate why this goes wrong?



More information about the fpc-pascal mailing list