by melony · 4y ago · 0 comments
These extensions didn't destroy x86. I don't think it will be different with RISCV.
X86 extensions get added onto the sum total of almost all the previous extensions, so that the number of variations to support has grown about linearly with time. RISC-V extensions are more or less all independent, so that the number of variant targets explodes exponentially as they are added to.
Nit pick: it explodes factorially, which is worse than exponential. The superset of a set of N elts is N!. (If order is meaningful (unlikely here), it's slightly worse, which is all permutations of each member of the superset. But that's only ~exponential and is quickly swallowed by the factorial).
Worse, if it traps and emulates instructions, then optimizations using extension instructions become radical pessimizations.
RVA22[0] is the first such profile, and among other important things which go a long way to ease cross-vendor software compatibility, it does require RVA22U and RVA22S, which in turn require a set of extensions.
[0]: https://github.com/riscv/riscv-platform-specs/blob/main/risc...
However a lot of these are embedded targets so I don't think we are even close to needing to worry about at least some of these things yet.