Article View: comp.arch
Article #565Re: Register windows
From: Waldek Hebisch
Date: Sat, 07 Nov 2026 16:21
Date: Sat, 07 Nov 2026 16:21
47 lines
2964 bytes
2964 bytes
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> 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.
It must be more complex. Silly fibonacci benchmark shows average
performance of function call per 2 clocks. Given length of
the pipeline return address is pushed too late to use it for
fetching intructions after return. In other words, return
must be predicted before the call starts executing.
--
Waldek Hebisch
Technical Details
Message-ID:
<11cnj5a$36etq$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!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> <2026Oct29.190945@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!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.arch
Subject: Re: Register windows
Date: Sat, 7 Nov 2026 16:21:00 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11cnj5a$36etq$1@paganini.bofh.team>
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> <2026Oct29.190945@mips.complang.tuwien.ac.at>
Injection-Date: Sat, 7 Nov 2026 16:21:00 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3357626"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2