3 ms·
> The only missing piece is moving overflow values onto and off of the stack. Already addressed and not really that hard of an issue to solve. Hardware alrea
by cogman10 4y ago
> The only missing piece is moving overflow values onto and off of the stack.
Already addressed and not really that hard of an issue to solve. Hardware already has all the logic embedded in it to be able to load or store memory into/from registers.
The logic would mirror the logic done by compilers when they are allocating registers and deciding what needs to be evicted to the stack.
The only missing piece is where that memory should be, but that's really as simple as having either the OS or the application logic allocate a special memory region for the purpose of register evictions and loads.