• Array indexing with unsigned int
    C251 v3.12 The C251 compiler does not handle arithmetic for array indices consistently. Consider char tt[30] ; char test ; unsigned char aaa = 27 ; unsigned int bbb = 27 ; test = tt[aaa - 20] ;...
  • C array index, signed or unsigned
    Firstly, according to the C standard, is the C array index variable interpreted as a signed or unsigned integer? Secondly, what does Keil do?
  • Using unsigned with signed int
    I have a signed integer which I have to assign to an unsigned one after addition with unsigned one. Like int16_t x = -9; uint16_t y = 11; if(x < y) { y = y+x; } How to ensure that...
  • Indexing large arrays
    I want to have an array that is larger an 65535 bytes. I need to be able to address this array a byte at a time. Can I simply use a index that is defined as a long? Do I have to break the array up...
  • use of bit as array index fails? (if bit is set)
    Hi, I suspect I have hit upon a bug in C51 V6. When a bit variable is used as an index into array of int or long int, it fails. Actually, it fails only if the bit is 1; otherwise it works ok. I...