hi I want to konw how the c51 compiler initialises those varibles declared in XDATA area? such like : unsigned char xdata var1 - 0x55; thanks!
That is done by the startup code. The initialization step is handled by code in the INIT.A51 file which may be found in the \KEIL\C51\LIB folder. Jon