by acidbaseextract · 6y ago · 0 comments
The summary is that RISC-V is inefficient because it requires more instructions to do the same work as other ISAs and it does not have any advantage to compensate for this flaw.
Those extra instructions appear especially in almost all loops and the most important reason is that RISC-V has a worse set of addressing modes than the the vacuum-tube computers from more than 60 years ago, which were built only with a few thousands tubes, compared to the millions or billions of transistors available now for a CPU.
Because of this defect of the RISC-V ISA, the Alibaba team who designed the RISC-V implementation with the highest current performance (Xuantie910, which was presented last month at Hot Chips) had to add a custom ISA extension with additional addressing modes, in order to be able to reach an acceptable speed.
Whenever the designers of the RISC-V ISA are criticized, they reply that the larger number of instructions is not important, because any high-performance implementation should do instruction fusion, to be able to reach the IPC of other ISAs.
Nevertheless, that is wrong for 2 reasons, instruction fusion cannot reduce the larger code size due to the inefficient instruction encoding and the hardware required for decoding more instructions in parallel and for doing instruction fusion is much more complex than the hardware required for decoding less instructions with a better encoding as in other ISAs.
RISC-V includes a compressed extension that makes instruction encoding competitive or better than x86(!), and with none of the drawbacks of ARM's Thumb modes.
If you would apply the same compression methods to a more compact original encoding then the compressed code would be even smaller.
Competing ISAs, such as ARM (Thumb), MIPS (nanoMIPS) and POWER also have compressed encoding variants.
(and if not, what would be some of the metrics to objectively compare the architectures?)
https://userpages.umbc.edu/~vijay/mashey.on.risc.html
If you look at things here in 2020 it looks like it was essentially the RISCiest of the CISC architectures, x86, and the CISCiest of the RISC architectures, ARM that succeeded in the modern day while architectures more tied to an ideological camp like Alpha or SPARC or VAX have all died out in our current era. That makes me think that another very ideologically RISC architectures like RISC-V will, at the very least, have a tough row to hoe in getting widespread commercial acceptance.