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

difference between the two?


What is the difference between the following two variable declaration?

unsigned char var;
and
unsigned char data var;

Parents
  • "According to me, all operations with that variable will be done with a "garbage" value."

    Yes, that's right.

    If you tell the tools to use XRAM they will do so.
    As Erik says, they have no way of knowing what may or may not be present in your target hardware - they just do as they are told.

Reply
  • "According to me, all operations with that variable will be done with a "garbage" value."

    Yes, that's right.

    If you tell the tools to use XRAM they will do so.
    As Erik says, they have no way of knowing what may or may not be present in your target hardware - they just do as they are told.

Children
No data