• Type promotion bug?
    Specific pointer -> generic pointer -> boolean (i.e. implicit compare to 0) seems not to work as expected. void main() { char* p; char* q; char xdata* xp = NULL; bit fail = FALSE; // This...
  • Type promotion bug?
    Specific pointer -> generic pointer -> boolean (i.e. implicit compare to 0) seems not to work as expected. void main() { char* p; char* q; char xdata* xp = NULL; bit fail = FALSE; // This...
  • Integral Promotion
    We are currently in the process of evaluating Keil tools for possible purchase. Using the evaluation package, I have been checking some common functions. One of them is a simple bit test macro suitable...
  • Integral Promotion
    We are currently in the process of evaluating Keil tools for possible purchase. Using the evaluation package, I have been checking some common functions. One of them is a simple bit test macro suitable...
  • BUG with bits in integer variable
    There is a BUG in the compilation of a bit definition: unsigned int bdata my_int; sbit bit15 = my_int ^ 15; sbit bit7 = my_int ^ 7; void main() { my_int = 0x8000; if(bit15) { // Here we shall...