Masking registers as available

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm working on a little real-time task-switching kernel in assembler. One of the purposes is that I (or others) should be able to write some C code to execute on top of it. In order to save the number of clicks required by a task switch, each task is only given a limited number of registers to use.

So my question is: Is it possible to tell a compiler that only certain MCU registers are available to it?


admin's test signature