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

> It is defined as unsigned int! So 0x8000 is OK.

All depends on the compiler!  In true ANSI C, ints are 16 bit, but C
compilers for the pic aren't necessarily 100% compliant.  As I mentioned
earlier, I use CCS C, where ints are 8 bit.  I looked at an old (1997)
manual for something called only "MPLAB C" (don't know a version; never
used it), and ints were 8 bit there also.
I kind of took off from that and have been assuming ints are 8 bits in
all subsequent posts (that is natural to me now anyway).  Sorry for any
confusion that may have caused.

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