Decent link, thanks.
It doesn't surprise me that having more visible registers and doing a good job of register allocation in the compiler is a better strategy (i.e., both more efficient and more flexible), but doing so means you are not so close to the metal. From the point of view of an efficiency feature that doesn't ask for complexity in the compiler, I see some appeal to register windows.
Re:Qnice – An Elegant 16 Bit Processor
by JoshTriplett on Friday March 13, 2020 @07:16AM
(#22566363)
It's not just that. If you have a huge internal register file and register renaming, along with a few other tricks, then it's at least as efficient (and potentially more efficient) to just push and pop the registers that actually get used.
Re:Qnice – An Elegant 16 Bit Processor
by throwaway_pdp09 on Friday March 13, 2020 @07:58AM
(#22566556)
Is 'efficient' what you want though? For embedded, yes. For maximum speed where you are willing to blow large power use, you can be much faster but it will cost you efficiency, badly (think Xeons). Without quantifying what you're trying to do, 'efficient' is only a metric not a target.
Re:Qnice – An Elegant 16 Bit Processor
by JoshTriplett on Friday March 13, 2020 @08:03AM
(#22566579)
I'm suggesting that a large register file and register renaming is likely to be the better alternative by many different metrics, yes.
Re:Qnice – An Elegant 16 Bit Processor
by throwaway_pdp09 on Friday March 13, 2020 @08:12AM
(#22566626)
Apologies, I misread you.
https://en.wikipedia.org/wiki/Register_window