piclist 2001\02\27\110003a >
Thread: MPLAB-C porting
face BY : Mike Mansheim email (remove spam text)

> No, I'm afraid it will not. The statement

>    frdaddr = (unsigned long *) flashadd;

> will interpret the bits of 'flashadd' as a pointer to an unsigned long;.

> It will then attempt to assign that _pointer_ to frdaddr.

Ah, didn't recognize that you can cast to a pointer.  Well, that's what
I get for jumping in where I'm not an expert just cuz I thought I knew
the answer.  I'll retreat now to wipe the egg off my face, and promise
not to post any more answers on this thread.

> Such an assignment is _illegal_ in standard "C" (you cannot assign a
> to an integer type).

Can you clarify this for me?  frdaddr was originally defined as a long
pointer - I'm not clear on what is illegal.

http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


See also: www.piclist.com/techref/microchip/ios.htm?key=port
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) MPLAB-C porting

month overview.

new search...