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

>>  On an old version of MPLAB-C (1.1) you could do something like this:

>>  unsigned int flashadd = 0x8000;
>>  unsigned long far *frdaddr;

>>  frdaddr = flashadd;

from Richard Sloan:
>frdaddr = flashadd;

> should be

>frdaddr = (unsigned long*)flashadd;

>The compiler is now more strict on type checking.

This will still result in frdaddr = 0.
Is that the intended result?

http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


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...