I would like to know how can we control the size of the pointer that point to RAM area.
UByte *RamAdr;
Keil's pointer implementation is, of course, described in the Manual. Read it! It contains a full description of the internal data representations, calling conventions, etc.