2 ms·
In a related topic, Berkely RISC decendents (including SPARC) have the concept of "Register windows" Basically there are many more registers than can be addres
by aidenn0 7y ago
In a related topic, Berkely RISC decendents (including SPARC) have the concept of "Register windows"
Basically there are many more registers than can be addressed by the program, instructions are instead addressing a "window" into this much larger register file. A function call shifts the window by some amount, typically with overlap, so parameters and return results go in the overlapped area, and whenever you are about to "wrap around" to the front of the file, the hardware will push to the stack as needed.
Obviously multithreading on such targets becomes complicated because the normal strategy of "Save all registers to the TCB" starts to become inefficient with very large register files.