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

Automatic variables problem

Hi all!
I'll try to explain my problem:

I have a function (func_A) with a local variable var_1 that calls another function (func_B), and this func_B with another local variable calls another function (func_C).
Inside func_C I have another local variable. When this variable is modified, the value in var_1 in func_A is modified. Keil says that the compiler uses internal register for optimization and the overlay process should take care of this, however is not happening. I am using compiler version 8.12 and linker 6.11.
Is there anything to do with the model I am using. I am lost here.
Thanks for your help !
J

0