Re: C programming on ARM
- From: Paul Keinanen <keinanen@xxxxxx>
- Date: Wed, 30 Jan 2008 21:41:12 +0200
On Wed, 30 Jan 2008 11:48:01 -0500, CBFalconer <cbfalconer@xxxxxxxxx>
wrote:
Jim Relsh wrote:
"Arlet Ottens" <usenet+5@xxxxxxxxxx> wrote in message
aamer wrote:
How can I correct the following error on ARM7 with C programming?
'=': implicit cast of pointrt to non-equal pointer
Use two pointers of the same type.
Or cast to the correct type (if you are sure and know what you're
doing).
Caution. Most pointer casts are implementation defined. The
exception is casting to and from void*, and from void* back to the
original type.
In which case would an arbitrary pointer casting be a problem ?
The only situation I can think of is for instance some DSP with 24 bit
addressable unit or some old 36 bit mainframe, in which for instance a
char* would require the memory word and also information which quarter
word is referenced.
With any byte addressable architecture, a pointer is just a pointer.
Paul
.
- Follow-Ups:
- Re: C programming on ARM
- From: Michael N. Moran
- Re: C programming on ARM
- From: CBFalconer
- Re: C programming on ARM
- From: Hans-Bernhard Bröker
- 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
- C programming on ARM
- Prev by Date: Re: RTS CTS Problem
- Next by Date: Re: RTS CTS Problem
- Previous by thread: Re: C programming on ARM
- Next by thread: Re: C programming on ARM
- Index(es):
Relevant Pages
|