Re: C programming on ARM




"Hans-Bernhard Bröker" <HBBroeker@xxxxxxxxxxx> wrote in message news:fnqrev$3ei$01$1@xxxxxxxxxxxxxxxxxxxx
Paul Keinanen wrote:

In which case would an arbitrary pointer casting be a problem ?

Roughly all of them. The real question is how violently the problem will show itself. Some of them can lie dormant
for a decade before a platform change exposes them as total show-stoppers.

With any byte addressable architecture, a pointer is just a pointer.

But there are quite a few non-byte addressable architectures out there.
Including ARM, last I checked.

Actually most architectures are byte addressable, including ARM, so
casting pointers just works. Of course it's essential to know what you're
doing - well written programs rarely need pointer casts.

Wilco


.