CCS reuses the RAM locations for local variables in sub-routines.
The local variables only have to exist while the sub-routine is active.
Once the program control has returned from the sub-routine, the
RAM location can be used for the next sub-routine. This memory
allocation is determined by the compiler when it compiles your code.
However, if you declare a variable in a sub-routine to be 'static',
then the compiler will not re-use it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum