🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #444

Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)

#444
From: MitchAlsup
Date: Thu, 29 Oct 2026 17:54
74 lines
3916 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >Thomas Koenig <tkoenig@netcologne.de> posted:
> >
> >> John Levine <johnl@taugh.com> schrieb:
> [IBM 801]
> >> They had subroutines for register save and restore, which of course
> >> helps code density, but is a bit... iffy.
> >
> >So iffy that essentially nobody does register windows anymore.
-----------snip----------
> 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. Whereas a flat register file has neither MOV.
 
> has to copy a and b between in and out, while using globals for
> arguments would avoid that (but would require saving the arguments in
> some way if they are used after the call, the same as without register
> windows).
> 
> Once we consider OoO, the potential advantages of register windows
> become even smaller:
> 
> 1) OoO can make the stores and loads around calls and returns cheaper:
>    If the front end runs far ahead of the execution engine (the usual
>    case), the stores can start as soon as the values are ready (and if
>    they are ready late, the store waits without delaying anything
>    else), and independent loads can start early.  So ideally they
>    don't get into the way of the useful instructions.

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>
 
> 2) On recent designs, zero-cycle store-to-load forwarding means that
>    even storing and loading around short function calls may have little
>    or no latency penalty.

When prologue and epilogue are 'structured' there are times when one
can elide the stores entirely as the memory location already has the 
bit pattern the <yet to be performed> ST will write. These happen
when an EXIT runs into a CALL->ENTER while EXIT is still moving data.
 
> 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.
 
> My memory says that the OoO implementations of HAL/Fujitsu used the
> minimum number of register windows allowed, probably due to a
> combination of the cost and the smaller benefits.  However, the number
> of exceptions would increase.
> 
> - anton
Technical Details
Message-ID: <1793296454-5857@newsgrouper.org>
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!newsgrouper.org!.POSTED!not-for-mail
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>

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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
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>
Date: Thu, 29 Oct 2026 17:54:14 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1793296454-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Thu, 29 Oct 2026 17:54:14 GMT
User-Agent: Newsgrouper/0.9.0