News for hackers. Stuff that matters.
Re:Addressing Criticism of RISC-V Microprocessors by panick21_ on Sunday March 20, 2022 @10:32AM (#30742924)
People over argue these minimal difference. Lets be honest, never in the history of ISA were these things the primary reason for success or failure of instruction sets been a slightly better code size.

Even if by <insert objective measurement> RISC-V is 10% worse then ARM, it wouldn't actually matter that much for adoption.

Adoption happens for business reasons and what is differentiating RISC-V far more then anything else is the chance in license, governance and ecosystem.

RISC-V being better at hitting different verticals optimally because of the molecularity is likely another thing that matters more overall then how perfectly it fits for each vertical.

Re:Addressing Criticism of RISC-V Microprocessors by tsmi on Sunday March 20, 2022 @02:35PM (#30745293)
People argue over these minimal differences for good reasons.

If <insert objective measurement> = binary size, and I'm buying ROM in volume to hold that binary, +10% ROM address space can easily cost more than the ARM license.

That can matter quite a lot for adoption. Especially in the short term.

Obviously, priorities differ and change as a function of time but as the saying goes, the only thing worse than making a decision with benchmarks is making a decision without benchmarks.

Re:Addressing Criticism of RISC-V Microprocessors by brucehoult on Sunday March 20, 2022 @07:58PM (#30748167)
In 64 bit land, RISC-V has consistently the smallest code size. RV64GC, not even using the new things in the B extension that will make code smaller again.

Some data from Ubuntu 21.10 for amd64, arm64, and riscv64:

https://www.reddit.com/r/RISCV/comments/tik718/addressing_cr...

Re:Addressing Criticism of RISC-V Microprocessors by tsmi on Monday March 21, 2022 @01:14PM (#30756820)
I only brought up the binary size thing to give a concrete example based off the article and the parent's comment. I am totally sure the situation is fluid and changing.

My high level point is: changes in "objective measurement" have costs in the same way that license, governance and ecosystem have costs. And "objective measurement" can easily overwhelm the others, especially at scale, and therefore they should not be dismissed as unimportant.

Re:Addressing Criticism of RISC-V Microprocessors by wmf on Sunday March 20, 2022 @01:49PM (#30744859)
Agreed, but I think the purpose of these kind of criticisms is to "fix" RISC-V before it becomes yet another worse-is-better design locked in for 50 years.
Re:Addressing Criticism of RISC-V Microprocessors by socialdemocrat on Sunday March 20, 2022 @02:11PM (#30745069)
I think you are really missing the point here. Of course RISC-V has negatives but most of those negatives exist for good reasons. It is a question of tradeoffs.

One of the most important goals of RISC-V is to make an architecture which can stand the test of time. In this space adding the wrong kind of instructions is a bigger problem than not adding particular instructions.

Whether you look at x86, HTML or just about anything the problem is nearly always about having to support old junk which no longer makes sense to support, or lacking the ability to grow. Remember 640K is enough for everyone? RISC-V has a lot of room to grow.

If you want an architecture for the future you would want a minimalist one with room to grow a lot. By keeping the instruction count very low and building in a system for extensions they have made a future proof ISA. Okay we cannot know the future, but it is more likely to survive for decades than something like x86 or maybe even ARM.

Re:Addressing Criticism of RISC-V Microprocessors by wmf on Sunday March 20, 2022 @02:40PM (#30745334)
Most of the complaints about RISC-V are extremely basic things like array indexing and conditional execution. These will never not be needed.
Re:Addressing Criticism of RISC-V Microprocessors by zik on Sunday March 20, 2022 @10:20PM (#30749334)
The problem is that those criticisms are almost always wrong. For instance the ARM proponents criticise RISC-V for having long instruction encodings and then they quote a few carefully cherry picked examples. But if you look at actual compiled programs RISC-V is nearly always 10-15% smaller than ARM.
Re:Addressing Criticism of RISC-V Microprocessors by tsmi on Sunday March 20, 2022 @03:39PM (#30745874)
I’m sure that’s what the team that invented segment registers said too.

The question is does it make sense to add these to the ISA long term? In the short term, given die density and how memory works today, it has advantages. But die density increases, making OoO cores cheaper, and memory technology changes. It’s not obvious that these are long term improvements.

Re:Addressing Criticism of RISC-V Microprocessors by brucehoult on Sunday March 20, 2022 @07:57PM (#30748153)
It's not that the examples given are not correct, in isolation, it's that they are not common enough in real code to matter.
Re:Addressing Criticism of RISC-V Microprocessors by dgreensp on Sunday March 20, 2022 @06:08PM (#30747196)
IANAE, but the article addresses why the arguments that assume these instructions need to be combined are usually not based on looking at the whole picture.
Re:Addressing Criticism of RISC-V Microprocessors by zozbot234 on Sunday March 20, 2022 @02:52PM (#30745430)
The only part of RISC-V that is "locked in" to any extent is the minimal set of basic integer instructions. Everything else is defined as part of standardized extensions, and can be superseded simply by defining new custom extensions. Actually even the minimal instruction set admits of some variation, such as the 'E' architectures that dispense with registers R16 to R31, thus saving area in the smallest implementations and potentially freeing up some bits in the encoding.
Re:Addressing Criticism of RISC-V Microprocessors by wmanley on Sunday March 20, 2022 @03:36PM (#30745847)
Things get locked in not by standards, but by usage. If your software depends on particular instructions being present you’re not going to buy a processor that has superseded those instructions, even if the new instructions conform to a theoretically cleaner design.

Everything being an extension (and thus removable) is a strength in some specific circumstances, but is a weakness in most.

Re:Addressing Criticism of RISC-V Microprocessors by socialdemocrat on Sunday March 20, 2022 @08:30PM (#30748475)
That doesn't make any sense. Because RISC-V has kept instructions to such a bare minimum, there will be very little you will be dependent on and which new designs have to take into account. What you describe is a problem for x86 and ARM not for RISC-V. You got it all in reverse.

General-purpose CPUs for desktop computers and such will not be willy nilly adding extensions. They will standardize on something like RV64GC. However for specialized hardware which you only ever deal with through drivers, nobody will care whether extensions come and go. Are you worried that the processor in your keyboard or mouse isn't backwards compatible with the processor you used in your previous mouse or keyboard?

Anyway code today can already check what extensions you have and generate different code paths. You can ship operating systems which have fallback code for most extensions so they can be be removed in the future. You also got traps so RISC-V can jump to a software implementation of unsupported instructions.

Re:Addressing Criticism of RISC-V Microprocessors by wmanley on Monday March 21, 2022 @06:38AM (#30752418)
> Are you worried that the processor in your keyboard or mouse isn't backwards compatible with the processor you used in your previous mouse or keyboard?

No, but the keyboard manufacturer might be, as might the people who are writing and optimising compilers targetting that CPU.