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

can you use local XDATA variables

I'm working Renesas at this time and can't test myself.
someone asked me a Keil ''51 question I can't nswer: "can you use xdata for local variables.

I guess the answer is no, (the call tree) if someone has the answer, please let me know

Erik

Parents
  • There should be absolutely no problem with locating a local variable to xdata. When you use the memory model 'large', the local variables will be located there anyway. Even variable overlaying is implemented for local xdata variables.
    If your application does not work as expected, please check if the local variable is located at a valid/existing xdata address.

Reply
  • There should be absolutely no problem with locating a local variable to xdata. When you use the memory model 'large', the local variables will be located there anyway. Even variable overlaying is implemented for local xdata variables.
    If your application does not work as expected, please check if the local variable is located at a valid/existing xdata address.

Children
No data