I hope you find something, but there are challenges

By: Adrian (a.delete@this.acm.org), August 4, 2022 4:56 am
Room: Moderated Discussions
NoSpammer (no.delete@this.spam.com) on August 4, 2022 3:18 am wrote:
>
> I guess, apart from stack housekeeping, the primary reason is many instructions have high or variable
> latency, which means that you will not be able to reuse the top of stack immediately. So you either
> need to shuffle or you continue with dependent instruction anyways and let OOO handle that. But still,
> for optimal execution it's more optimal to put instructions closer to the order of execution, to release
> resources earlier. Even if you use stacks the optimal number of addressable sources will be close to
> what the register requirements studies have found, so you will have to address about 16-32 somehow,
> if not directly then you will be shuffling like x87. So I see no advantage for stacks.


What you say is correct when there is a single operand stack, like in Intel 8087.

In an ISA with multiple operand stacks, the reason of having more of them is to dedicate each stack to a distinct chain of *dependent* instructions.

So you always want to reuse immediately the top-of-the-stack and all instructions that target the same stack will be executed at the pace determined by their latencies.

The latencies are hidden by not using the same stack in instructions that are adjacent in the instruction stream.


Of course an OoO implementation can relax the requirement of always alternating between stacks, because it can reorder the instructions itself, but you still need to have multiple chains of dependent instructions anyway, otherwise even OoO cannot do miracles, and when there is a single chain it would still be limited by latencies.

Even when the compiler does not have to be careful with the scheduling, the correct code generation for such an ISA would be to always use a stack per chain of dependent instructions, as that could enable hardware optimizations for the placement of intermediate results.


With multiple stacks, it is likely that many cases when shuffling was required in a single stack can better be done with copying/moving the top of one stack to another stack, at appropriate times, instead of using shuffling.







< Previous Post in ThreadNext Post in Thread >
TopicPosted ByDate
Empirical data on ISA design parametersNvaxPlus2022/08/02 08:45 AM
  Empirical data on ISA design parameters---2022/08/02 10:25 AM
    Empirical data on ISA design parametersRayla2022/08/02 10:29 AM
  Empirical data on ISA design parametersAnon2022/08/02 11:46 AM
    Empirical data on ISA design parametersAdrian2022/08/03 02:00 AM
      Immediate ranges (was: Empirical data on ISA...)Marcus2022/08/07 10:16 AM
        Immediate ranges (was: Empirical data on ISA...)Björn Ragnar Björnsson2022/08/07 05:14 PM
          Immediate ranges (was: Empirical data on ISA...)Marcus2022/08/07 09:50 PM
  I hope you find something, but there are challengesMark Roulo2022/08/02 06:48 PM
    I hope you find something, but there are challengesBrett2022/08/02 10:41 PM
      I hope you find something, but there are challengeshobold2022/08/03 03:17 AM
        I hope you find something, but there are challengesBrett2022/08/03 11:37 AM
    I hope you find something, but there are challengesvonk2022/08/03 12:22 AM
    I hope you find something, but there are challengesAdrian2022/08/03 02:19 AM
      I hope you find something, but there are challengesNoSpammer2022/08/03 07:55 AM
        I hope you find something, but there are challengesAnon2022/08/03 09:25 AM
          I hope you find something, but there are challengesLinus Torvalds2022/08/03 11:31 AM
          I hope you find something, but there are challengesNoSpammer2022/08/04 03:18 AM
            I hope you find something, but there are challengesAdrian2022/08/04 04:56 AM
              I hope you find something, but there are challengesLinus Torvalds2022/08/04 11:03 AM
                I hope you find something, but there are challengesMr. Camel2022/08/04 12:29 PM
              I hope you find something, but there are challengesNoSpammer2022/08/08 09:31 AM
            I hope you find something, but there are challengesAnon2022/08/04 02:54 PM
        I hope you find something, but there are challengesAdrian2022/08/03 11:33 AM
          I hope you find something, but there are challengesBrett2022/08/03 12:21 PM
          I hope you find something, but there are challenges---2022/08/03 02:55 PM
            I hope you find something, but there are challengesBrett2022/08/03 04:31 PM
              Rebirth of the 68k archBrett2022/08/05 01:17 PM
                Rebirth of the 68k archMarcus2022/08/06 04:36 AM
                  Rebirth of the 68k archMegol2022/08/07 02:01 PM
                    Rebirth of the 68k archMarcus2022/08/07 11:30 PM
                      Rebirth of the 68k archBrett2022/08/08 12:31 AM
                        Rebirth of the 68k archMarcus2022/08/08 01:46 AM
                  Rebirth of the 68k archAnon2022/08/07 02:57 PM
                    Rebirth of the 68k archBrett2022/08/07 05:37 PM
                      68K was not a kludgeMark Roulo2022/08/07 06:05 PM
                        68K was not a kludgeBrett2022/08/07 09:56 PM
                          68K was not a kludgenone2022/08/08 01:00 AM
                            rich man's VAX and more O.T.Michael S2022/08/08 02:44 AM
                              rich man's VAX and more O.T.none2022/08/08 02:51 AM
                Rebirth of the 68k archBrett2022/08/10 11:59 PM
                  Rebirth of the 68k archUngo2022/08/11 03:53 AM
                    Rebirth of the 68k archAnon42022/08/11 12:08 PM
                      Rebirth of the 68k archrwessel2022/08/11 01:02 PM
            I hope you find something, but there are challengesAdrian2022/08/04 12:07 AM
              I hope you find something, but there are challengesEtienne2022/08/04 05:15 AM
          I hope you find something, but there are challengesAnon2022/08/03 05:15 PM
        I hope you find something, but there are challengesblaine2022/08/03 12:03 PM
Reply to this Topic
Name:
Email:
Topic:
Body: No Text
How do you spell tangerine? 🍊