92 points · by ingve · 4y ago · 62 comments
Interesting talk on the history of the architecture, including 64-bit, from Arm's lead architect [1]
[1] https://soundcloud.com/university-of-cambridge/a-history-of-...
These days, RISC-V seems to be quickly gaining terrain in academia.
https://www.jwhitham.org//2016/02/risc-instruction-sets-i-ha...
That said, in practice many people use them interchangeably since A64 is the only instruction set available in AArch64.
That's not pragmatism per se. It's purity, but optimizing for something else: wide front ends and dense code to minimize memory overhead. Those are the right things to optimize for on a modern chip.
Somewhat complicated decodes are fine as long as you don't have to do crazy things to guess the width of instructions like you do on x64.
The complexity this adds to decode is a far cry from the brute-force approach x86 requires.
This negligible impact is weighted against the benefits of higher code density; RISC-V is the most dense ISA, for 32 and 64 bit.
ARM's AARCH64 does in contrast have exceptionally poor code density for a 64bit architecture. This translates in much higher requirements for cache sizes and ROM size, which in turn mean larger area and higher power consumption for a given performance target.
ARM's popularity also stems from its licensing, AFAICT. You can license various ARM cores, from the tiniest to the beefiest, to include in your SOC or MCU, mix and match them on the die, etc. This is not true for any reasonably recent x86 architecture, either from Intel or from AMD.
See a tiny intro e.g. at https://lwn.net/Articles/718888/
Specifically, Thumb and Thumb2 density was excellent, and remained unbeaten until quite recently (2022, RISC-V B+Zc).
But then aarch64 did, to everyone's surprise, ditch variable instruction size, and with it lost its code density advantage.
Thumb2 was remarkable for getting so close to the performance of regular Arm code, but it was always still slower for almost any task even with the reduced instruction cache pressure.
Aarch64 very much loses out; Microcontrollers are resource-constrained, so they won't use it.
High performance implementations (like Apple's M1) need to work around code density by making caches larger, or even having a microop cache; this all has transistor count cost, which imposes area cost, power cost and maximum clock cost.
Aarch64 has many op-codes that take different parameters to become different effective instructions, often in cases where RISC-V would need an extension for one of their counterparts. I think a RISC-V µarch could do the same internally but that would probably require a larger decoding stage.
The evidence so far points to the opposite.
Existing RISC-V µarch from e.g. Andes and SiFive offer performance that matches or beats the ARM cores they're positioned against, with considerably lower power and significantly smaller area.
And they do already have an answer for most of ARM's own lineup, covering from the smallest cores to the higher performing ones, solely excluding the very newest, highest performance targeting cores, where the gap is already under 2 years.
Citation needed.
>is basically 'instruction fusion will fix everything'.
Wherever I've seen people involved with RISC-V talk about fusion[0], the impression I got is the opposite; it is a minor, completely optional gimmick to them.
https://userpages.umbc.edu/~vijay/mashey.on.risc.html
So that would be things like Vax that not only have load-store opps, they also have things like indirect loads and stores in a single operation.