Re: C programming on ARM
- From: "Wilco Dijkstra" <Wilco_dot_Dijkstra@xxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 23:12:41 GMT
"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
.
- Follow-Ups:
- Re: C programming on ARM
- From: Hans-Bernhard Bröker
- Re: C programming on ARM
- From: Grant Edwards
- Re: C programming on ARM
- References:
- C programming on ARM
- From: aamer
- Re: C programming on ARM
- From: Arlet Ottens
- Re: C programming on ARM
- From: Jim Relsh
- Re: C programming on ARM
- From: CBFalconer
- Re: C programming on ARM
- From: Paul Keinanen
- Re: C programming on ARM
- From: Hans-Bernhard Bröker
- C programming on ARM
- Prev by Date: Re: C programming on ARM
- Next by Date: Re: C programming on ARM
- Previous by thread: Re: C programming on ARM
- Next by thread: Re: C programming on ARM
- Index(es):