This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PDATA and XDATA

If I use PDATA for my Stack. will any of my XDATA overlap? or is Keil smart enough to prevent that? Does it mean the RAM(XDATA) I have is 2048 - 256 for pdata?

MCU: AT89C51CC03
Memory Model: Compact

PBPSTACK EQU 1
PBPSTACKTOP EQU 0xFF +1

Parents
  • Thanks Al,

    I understand at little more know. If I do have problem I will just redefine it. Moving everything back to standard stack and if I need PDATA just assigning it. I did do some benchmarks and when I made the change to PDATA it did show some and improvement. But my orignal question has not really been asnwered. e.g.

    PDATA char data[255];
    XDATA char data2[255];

    Do these two array go to the same memory location?

Reply
  • Thanks Al,

    I understand at little more know. If I do have problem I will just redefine it. Moving everything back to standard stack and if I need PDATA just assigning it. I did do some benchmarks and when I made the change to PDATA it did show some and improvement. But my orignal question has not really been asnwered. e.g.

    PDATA char data[255];
    XDATA char data2[255];

    Do these two array go to the same memory location?

Children