Article View: comp.arch
Article #447Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
From: Anton Ertl
Date: Thu, 29 Oct 2026 18:09
Date: Thu, 29 Oct 2026 18:09
57 lines
3571 bytes
3571 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> There is a third issue: Do you pass arguments in the register windows,
>> or in what SPARC calls global registers? AFAIK SPARC chose to pass
>> them in windows, but that means that a call sequence like
>>
>> int foo(a,b)
>> {
>> ...
>> bar(a,b);
>> ...
>> }
>
>It gets worse when::
>
> type foo( a, b ){
> ...
> return bar( a, b );
> ...
> }
>
>Now you have to copy forward foo->bar and copy bar's return back
>as foo's return.
No, it's a tail-call. You just jump to bar without saving or
restoring a register window.
>My 66000 takes advantage of this by LDing the Ret Addr first, and then
>reLDing the rest of the file, so by the time that is done, FETCH already
>has instructions for DECODE>
I get the impression that My 66000 lives in 1994. In a modern
(post-1995, with a few exceptions, most of which have died out in the
meantime) processor the front end predicts the return from the
processor-internal return stack and often starts fetching from there
before the load-store unit sees the load of the return address. The
return address is then used to validate the branch prediction and
retire the return instruction.
>> And register windows tend to cost more in OoO implementations: the
>> register address table (for implementations with a separate renamer)
>> becomes larger.
>
>Slower RF, makes the pipeline at least 1/2 cycle longer.
Given register file sizes like 416 physical GPRs on the Qualcomm
Oryon, making the pipeline longer seems to be something CPU designers
can handle these days; with 416 physical GPRs, taking 72 (or however
many architectural registers Fujitsu used) rather than 32 for
architected registers is probably not a big thing, but sure, now there
are 40 fewer registers that can be used for renaming. Still the
growth of the RAT is probably a bigger issue.
- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Oct29.190945@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<vpufbv$4qc5$1@dont-email.me> <1792870082-5857@newsgrouper.org> <11bj58a$327li$1@dont-email.me> <2026Oct26.193309@mips.complang.tuwien.ac.at> <11bob96$3af$2@gal.iecc.com> <11bpggu$1961c$1@dont-email.me> <1793120292-5857@newsgrouper.org> <2026Oct29.171118@mips.complang.tuwien.ac.at> <1793296454-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC) Date: Thu, 29 Oct 2026 18:09:45 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 57 Message-ID: <2026Oct29.190945@mips.complang.tuwien.ac.at> References: <vpufbv$4qc5$1@dont-email.me> <1792870082-5857@newsgrouper.org> <11bj58a$327li$1@dont-email.me> <2026Oct26.193309@mips.complang.tuwien.ac.at> <11bob96$3af$2@gal.iecc.com> <11bpggu$1961c$1@dont-email.me> <1793120292-5857@newsgrouper.org> <2026Oct29.171118@mips.complang.tuwien.ac.at> <1793296454-5857@newsgrouper.org> Injection-Date: Thu, 29 Oct 2026 18:37:49 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3800851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m+GSDIvjKIrcB8Xlcqd/Y"; posting-host="5ad9f9b19fb54b6c0af64c25657e7760" Cancel-Lock: sha1:WK9juCJXat8c9UooOM0uOHbTAJU= sha256:muWrkBO4svIsbGE/9I5hAKOhwFwqNZ81dRKuFXKc+ow= sha1:qnvyLz/1/XxoApaY1TddiOzaloA= sha256:HWjUQR4vv6UZCk5n8jodKYXVkLfsK+FPdT6u26rAGWo= X-newsreader: xrn 10.11