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

using register bank in C167

I found how to use one specific register bank for a function (interupt)by specifying using My_Bank and so, be faster (less PUSH and POP)but I would like to know if I can specify a variable to be located in one register bank (for speed), and, if yes, how to do it?

Parents
  • Only automatic variables (function-local, non-static) can be assigned to CPU registers by the compiler. Therefore, the notion of assigning a variable to a register bank makes no sense in this model.
    The question is, why would you want to do this?

Reply
  • Only automatic variables (function-local, non-static) can be assigned to CPU registers by the compiler. Therefore, the notion of assigning a variable to a register bank makes no sense in this model.
    The question is, why would you want to do this?

Children
No data