3 ms·
The difference is a lot when put into proper perspective. Average x86 instruction length is 4.25 bytes. ARM64 is 32-bits. RISC-V compressed was a little under
by hajile 3y ago
The difference is a lot when put into proper perspective.
Average x86 instruction length is 4.25 bytes. ARM64 is 32-bits. RISC-V compressed was a little under 3 bytes around 10 years ago when introduced.
So if RISC-V instruction length is 30% shorter than x86, why wasn't RISC-V density get a similar boost? x86 has some relatively common instructions that RISC-V didn't have even just a year or two ago. There are still some things that take 4-6 instructions in RISC-V, but just 1-2 instructions in x86 or ARM64.
Over time, the code density of RISC-V will increase. Meanwhile, stuff like APX seems to require very long instructions, so compilers will be playing an interesting game where more registers and 3-register instructions decrease MOVs, but the length of the instructions also shoots up a lot.
- klelatti 3y ago> Over time, the code density of RISC-V will increase Why given the push back against adding new instructions tang would achieve this?
- hajile 3y agoThere isn't a pushback against new instructions. Look at the large number of extensions being worked on at the moment let alone all the extensions already finalized and required for current profiles. The only issue is adding bad extensions that bleed microarchitectural details to the consumer.