int xdata i _at_ 0x8000; In this, the variable 'i' stores in user defined location 0x8000.Similarly my whole function have to be stored and compiled from user defined location(0xE000). I am using ADUC841. Kindly anyone help me in this regard.