[Info-vax] Three boot camp sessions on YouTube
Johnny Billquist
bqt at softjar.se
Thu Oct 13 05:30:28 EDT 2016
On 2016-10-12 16:21, John Reagan wrote:
> On Wednesday, October 12, 2016 at 7:04:27 AM UTC-4, Neil Rieck wrote:
>> For me, the big difference between Alpha and Itanium in those videos was the register count (32 vs. 128). Having 128 registers may have seemed like a good idea when they were designing that chip, but we all know that an OS is going to require some/all those registers to be periodically saved then restored (well, not all on every interrupt). I wonder if Intel would have implemented 128 had they known that dynamic memory technology would keep improving as it has.
>>
>> So with the shift back to x86, the maximum number of registers appears to be moving to a more manageable number.
>>
>> Neil Rieck
>> Waterloo, Ontario, Canada.
>> http://www3.sympatico.ca/n.rieck/
>
> And now the compilers have to put many more variables on the stack and do memory reads/writes all the time. Yes, you had to save/restore some of the register stack on interrupts, mode changes, context swaps, etc. but if you count the memory operations saved from not keeping your variables on the stack, I think it might come out better.
Don't forget that if you have lots of variables in registers, you need
to save/restore much more on each call as well. It is, as always, a
tradeoff.
Even more fun with things like register windows, which you have on
SPARC. Looks pretty nice to start with, since you move your register
window when calling, but then you realize you need to keep track, and
when you run out of space in the full register space, the window becomes
a burden, and you need to dump a lot of registers in order to clear
things up and get running again, meaning it becomes even more complex,
and more code to be executed all over the place.
Register windows never became popular.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
More information about the Info-vax
mailing list