Re: Misc: Ongoing status...

Liste des GroupesRevenir à c arch 
Sujet : Re: Misc: Ongoing status...
De : mitchalsup (at) *nospam* aol.com (MitchAlsup1)
Groupes : comp.arch
Date : 01. Feb 2025, 05:05:58
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <605af5c97a4635c48fe002dbc78a5686@www.novabbs.org>
References : 1 2 3 4 5
User-Agent : Rocksolid Light
On Sat, 1 Feb 2025 1:56:16 +0000, BGB wrote:

On 1/31/2025 1:30 PM, MitchAlsup1 wrote:
>
Generally, around 95% of the function-local branches can hit in a Disp9,
vs 98% for Disp12. So, better to drop to Disp9.
>
DISP16 reaches farther...
>
>
But...
>
Disp16 is not going to fit into such a 32-bit encoding...
It fit in mine !

But, say, 16+6+5+3 = 30.
Would have burned the entire 32-bit encoding space on BccI ...
Which is why  one does not do CMP-BC in one instruction !
The best you can do only covers 60%-odd if the cases.
-------------------
>
In XG3's encoding scheme, a similar construct would give:
   Bcc  Imm17s, Rs, Disp10s
Or:
   Bcc  Rt, Rs, Disp33s
But, where Bcc can still encode R0..R63.
>
It is possible that a 96-bit encoding could be defined:
   Bcc Imm26s, Rs, Disp33  //RV+Jx
   Bcc Imm30s, Rs, Disp33  //XG3
Having not found a function that takes ¼GB of space, I remain
comfortable with 28-bit branch displacement range. I also have
CALL instructions that reach 32-bit or 64-bit VAS.
------------------------------
Granted, I understand a prefix as being fetched and decoded at the same
time as the instruction it modifies.
Instruction needs to be plural.

Some people seem to imagine prefixes as executing independently and then
setting up some sort of internal registers which carry state over to the
following instruction.
Instruction needs to be plural.
--------------
Ironically though, the GCC and Clang people, and RV people, are
seemingly also adverse to scenarios that involve using implicit runtime
calls.
>
Granted, looking at it, I suspect things like implicit runtime calls (or
call-threaded code), would be a potential "Achilles's Heel" situation
for GCC performance, as its register allocation strategy seems to prefer
using scratch registers and then to spill them on function calls (rather
than callee-save registers which don't require a spill).
I know of a senior compiler writer at CRAY who would argue that
callee-save registers are an anathema--and had a litany of reasons
thereto (now long forgotten by me).

So, if one emits chunks of code that are basically end-to-end function
calls, they may perform more poorly than they might have otherwise.
These lower-level supervisory routines are the ones least capable of
using callee save registers in a way that saves cycles--often trading
register MOV instructions for LD instructions setting up arguments
and putting (ST) results where they can be used later.

Date Sujet#  Auteur
30 Jan 25 * Misc: Ongoing status...25BGB
31 Jan 25 +* Re: Misc: Ongoing status...19MitchAlsup1
31 Jan 25 i`* Re: Misc: Ongoing status...18BGB
31 Jan 25 i `* Re: Misc: Ongoing status...17MitchAlsup1
1 Feb 25 i  `* Re: Misc: Ongoing status...16BGB
1 Feb 25 i   `* Re: Misc: Ongoing status...15MitchAlsup1
1 Feb 25 i    `* Re: Misc: Ongoing status...14BGB
2 Feb 25 i     `* Re: Misc: Ongoing status...13MitchAlsup1
2 Feb 25 i      +- Re: Misc: Ongoing status...1BGB
2 Feb 25 i      `* Caller-saved vs. callee-saved registers (was: Misc: Ongoing status...)11Anton Ertl
2 Feb 25 i       `* Re: Caller-saved vs. callee-saved registers10BGB
2 Feb 25 i        `* Re: Caller-saved vs. callee-saved registers9BGB
3 Feb 25 i         `* Re: Caller-saved vs. callee-saved registers8MitchAlsup1
3 Feb 25 i          `* Re: Caller-saved vs. callee-saved registers7BGB
3 Feb 25 i           `* Re: Caller-saved vs. callee-saved registers6MitchAlsup1
3 Feb 25 i            `* Re: Caller-saved vs. callee-saved registers5BGB
4 Feb 25 i             `* Re: Caller-saved vs. callee-saved registers4MitchAlsup1
4 Feb 25 i              `* Re: Caller-saved vs. callee-saved registers3BGB
4 Feb 25 i               `* Re: Caller-saved vs. callee-saved registers2MitchAlsup1
5 Feb 25 i                `- Re: Caller-saved vs. callee-saved registers1BGB
9 Mar 25 `* Instruction Parcel Size5Robert Finch
9 Mar 25  `* Re: Instruction Parcel Size4MitchAlsup1
9 Mar 25   +- Re: Instruction Parcel Size1Robert Finch
9 Mar 25   `* Re: Instruction Parcel Size2Robert Finch
9 Mar 25    `- Re: Instruction Parcel Size1MitchAlsup1

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal