Hi,
I'm wondering what the differences are when I declare a variable with one of the modifiers, eg
- BYTE xdata temp;
- BYTE idata temp;
- BYTE data temp;
- BYTE temp;
I notice that some data types aren't allowed to be placed in xdata, for example BOOL. I get an error telling me it's in a different/ illegal memory space.
I also notice that there are code size differences. When I put variables in xdata/idata(1/2), my code seems to be larger by a few bytes than if I were to put them in data or not specify them(3/4). I'm wondering if there are any functional differences. I'm trying to keep my code as small as possible now so should I not put anything in xdata/ idata? What are the guidelines?
btw I'm programming in C and using Keil uVision2 as my IDE.
Thanks.