I am slightly confused about the RAM variables. For every global variable there is an address allocated which can be seen in memory map. After power off the RAM content is gone, then how does the micro know the addresses of the variables after power on.