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

functions variable mapping?

As I can see, the keil compiler doesnt use regular stack for functions, and all the local variables inside functions are mapped in global memory.
Is there a way, to make it behaive like a normal program should? I.E - create a local variables in ram,and destroy them, when the function ends?
Thank you.

Parents
  • Is there a way, to make it behaive like a normal program should? I.E - create a local variables in ram,and destroy them, when the function ends?

    yes, there is and, amazingly enough, that is how it works. That the stack is not involved does not disable thais.

    Erik

Reply
  • Is there a way, to make it behaive like a normal program should? I.E - create a local variables in ram,and destroy them, when the function ends?

    yes, there is and, amazingly enough, that is how it works. That the stack is not involved does not disable thais.

    Erik

Children
No data