When do I use xdata?
问题 I am new at embedded system programming. I am working on a device that uses an 8051 chipset. I have noticed in the sample programs that when defining variables, sometimes they use the keyword xdata. like this... static unsigned char xdata PatternSize; while other times the xdata keyword is omitted. My understanding is that the xdata keyword instructs the compiler that that variable is to be stored in external, flash, memory. In what cases should I store variables externally with xdata?