I declare a variable unsigned char bdata Kde in a.c.
[in file a.c] unsigned char bdata Kde;
[in file b.c] #include <stdio.h> ..... extern unsigned char bdata Kde; sbit testbit=Kde^1; void main(void) {......}
I was able to use a search engine to find "gimpel software lint". While doing so, I saw a couple of interesting quotes: http://www.tldp.org/LDP/LG/issue51/pramode.html "Thou shalt run lint frequently and study its pronouncements with care, for verily its perception and judgment oft exceed thine." -Henry Spencer, "The Ten Commandments for C Programmers" http://www.lysator.liu.se/c/c-faq/c-13.html ...many modern compilers attempt to diagnose almost as many problems as a good lint does.
...many modern compilers attempt to diagnose almost as many problems as a good lint does. I use Gimpel Sofware's PC-lint and several (9) modern compilers. None of the compilers come close to catching what lint does!