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

OVERLAY

Hi,

I have two threads interrupt and main thread. currently, i'm using NOOVERLAY.
In order to save space in the RAM, i want to overlay data between functions, BUT I want that the interrupt will not overlay with the main thread.

How can i do it? i'm using a KEIL of 8051 Uvision.

example:
void interrup (void);
.....
void main (void);
.....

Parents
  • How can i do it?

    You don't have to - it's automatic.

    Since you never call the interrupt functions from your main code, they're not part of the calling tree that starts with main(), and therefore the compiler does not overlay their local variables with any of the main code.

Reply
  • How can i do it?

    You don't have to - it's automatic.

    Since you never call the interrupt functions from your main code, they're not part of the calling tree that starts with main(), and therefore the compiler does not overlay their local variables with any of the main code.

Children