|
From: Tom H. <th...@cy...> - 2003-08-14 10:36:34
|
In message <E19...@sc...>
ps...@ic... wrote:
> However, the target platform (ARM) does not allow
> non-aligned short and int accesses. It also does not show
> up the error - the result of non-aligned access is cache
> corruption (ouch).
I don't believe that the ARM will corrupt the cache if you do an
unaligned access but what it will do is load a wierd rotated value
that you won't be expecting. The behaviour is well defined, if a
little on the odd side, and truly sick people have been known to
write code that relies on it ;-)
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|