Hi,

> Are __bit and __sbit implemented for PIC14?

No, neiter __bit nor __sbit is supported on PICs. You can achieve
mostly the same effect (except for pointers to __bit-type data) using
bitfields with named fields and #defines to access individual bits.

> As far as I can make out from a brief look at the source, it looks like
> bit/sbit keywords are commented out of main.c for both PIC14 and PIC16
> for some reason.

Probably laziness ;-) ... or assumed lack of benefit: If the PICs had
bit-addressable memory, supporting __bit would be required / helpful.
The PICs do not, so we did not invest the effort required to support
__bit. You may file a feature request to change that, but I am not
really willing to spend time on this one unless you (or someone else)
convince me with an undeniable argument ;-)

Best regards
Raphael

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to