• 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...
  • 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...
  • Integer promotion bug
    I think there is a bug in the C51 and CX51 compilers regarding integer promotion. I have not deselected integer promotion and thus expect proper C semantics without adding casts. The bug seems to...
  • 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...