News for hackers. Stuff that matters.
Re:A CPU Is a Compiler by PaulHoule on Thursday March 23, 2023 @11:38AM (#35276471)
It all depends how much you want to get that last bit of performance and what you are willing to pay for it in terms of power, die area, all that.

And of course every part of it has to be balanced. It makes no sense to decode instructions faster than the system downstream can handle it, particularly if you are wasting resources to do so.

The reason why Intel has so many different implementations of x86 is to meet the needs of different market segments.

Re:A CPU Is a Compiler by addaon on Thursday March 23, 2023 @11:41AM (#35276530)
Yep. And it's worth saying that, contrary to my previous over-simplification, the trade-offs change once you give up on single-cycle instruction decoding. With a longer pipeline, you can do a split into 16 simple, small pre-decoders, that basically just extract the length of the instruction, /then/ mux on the inputs to just five full decoders. It adds a pipeline stage, but it can be lower area for the same sustained performance.

Trade-offs are everywhere. But certainly fixed width instructions, or variable-width-but-trivial-to-determine-length (Thumb before Thumb2, RISC-V compressed) have real advantages.