by phire · 1w ago · 0 comments
> RISC-V is just a leaner and cleaner version of ARM, aka RISC
But does leaner and cleaner actually result in better performance? And really RISC-V is only lean and clean if you ignore all the extensions. With extensions, it's doing many of the same things as ARM.
And IMO RISC is legacy (or at least that lean-and-clean version of RISC is), we are actually in a post-RISC era where massive out-of-order μarches absolutely dominate the high-performance computing space.
> without IP lock...
Yes, that is the major advantage of RISC-V, along with extensibility.
And TBH, it's good enough for many usecases.
One thing that the massive dominance of x86 over the last 30 years should have taught us, is that ISA doesn't matter anymore. The modern post-RISC Out-of-Order paradigm allows us to complexly detach a legacy ISA from the internal μarch and make it run really fast despite all the legacy issues.
[0] https://dmitry.gr/?r=06.%20Thoughts&proj=12.%20RV
[1] https://news.ycombinator.com/item?id=49298035
[2] https://gist.github.com/erincandescent/8a10eeeea1918ee4f9d99...
The point is to reduce the implementation complexity required to achieve 'classic' high performance. This is very important for new µarchitecture designers.
In other word, you get 'classic' high performance more easily, faster with less work to do, and I guess this has been one of the main drivers for RISC-V design (and the fact the ISA is not IP locked).
I read it here that some RISC-V performant/large µarchitectures did add the complexity required to work around the compressed instructions, but it took them a while, and that would not have been required without the compressed instructions (this is not really RISC-V but "RVA"). Some CPU designers say it would have been the same mess with a status flag while implementing OoO performance.
And I am talking about 'implementation complexity' to achieve classic high performance: we all know that with enough complexity and additional work you can work around many performance bottlenecks, but it will "cost" each time.
RISC-V designers did try hard to design their ISA to reduce the road torwards high performance, with more or less success.
In other words, what the RISC-V designers seemed to have achieved: you need "less " to reach high performance, but this is not perfect.
ISA matters in the sense that if you expose better mechanisms for trust boundary transitions and (hardware/non-privileged/etc) notifications, you'll gain significant performance in just about anything that isn't 100% compute. And if you expose better control flow mechanisms you get more secure code.
If you can "think RISC well" and manage to express those mechanisms with a neat small ISA, good for you. If not, just slap on more CISC and the end result will still be better than a RISC missing the relevant thing.
Here's an apparent ~40% improvement on I/O with a small ISA change to get out of legacy x86 syscall hell: https://www.phoronix.com/review/intel-fred-panther-lake/2
But apparently it doesn't allow it to run really cool, thermally speaking: ARM has an edge over x86 for mobile. Is that a difference that is independent of µarch? If so, what is it down to, provided it can be expressed in reasonable simplicity?