From: Bernhard Held <bernhard@be...> - 2003-01-03 09:38:22
> SDCC 2.3.2 expandes the index for test[q+1] to a long.
> For the 8051 are only 16 bits needful.
This has changed with the current version in CVS. But at the moment (q+1) is
evaluated with 8 bits - shouldn't it be 16 bits?
code char *c_test;
xdata char *x_test;
near char *n_test;
volatile unsigned char p,q;
p = c_test[q+1]; // 16 bit?
p = x_test[q+1]; // 16 bit?
p = n_test[q+1]; // 8 bit are sufficient
Get latest updates about Open Source Projects, Conferences and News.