Re: C programming on ARM



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

.



Relevant Pages