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?
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?