#define xtime(x) ((x<<1) ^ (((x>>7) & 1) * 0x1b))
#define Multiply(x,y) (((y & 1) * x) ^ \ ((y>>1 & 1) * xtime(x)) ^ \ ((y>>2 & 1) * xtime(xtime(x))) ^ \ ((y>>3 & 1) * xtime(xtime(xtime(x)))) ^ \ ((y>>4 & 1) * xtime(xtime(xtime(xtime(x))))))
void main() { unsigned char a=0xde,d; d=Multiply(a,0x0e);
}
This code above is not compiling on Keil 3 but it complied on Keil 4. I will want to know why?
Well, since there is no compiler called "Keil 3" (much less one that would be targeting platform "None"): of course it doesn't compile anything, much less this ... well, whatever "this" is.
And why exactly do you worry about what "Keil 3" would have been doing, since you already have "Keil 4"?
I will want to know why?
Oh, good. You had me worried you might want an answer now ;-P
So study the Error/Warning Messages and fix whatever problems they are telling you about!