Re:A Big Week for RISC-V
by rwmj on Sunday February 13, 2022 @06:59AM
(#30321145)
This is the standard FUD spread around by Arm apologists. Of course you can detect RISC-V extensions at both compile and run time. In fact it's the first widespread ISA that was designed with extension in mind (so for example there's a uniform way to find instruction boundaries even if you do not know how to fully interpret an extension). This is in stark contrast to x86 where extensions are basically hacks piled on hacks.
[ Parent
| on HN ]
> so for example there's a uniform way to find instruction boundaries even if you do not know how to fully interpret an extension
This doesn’t make sense, though. If you have something in your instruction stream that you don’t understand, it would be insane to do anything but fault immediately, unless the instruction is some sort of optional feature such as a hint or security mechanism where there is no real behavior associated with it. I mean ARM has this “capability” too by virtue of a fixed length instruction set but it doesn’t do anything with this like you’re describing.
It will be useful for disassemblers, among other things.
Sure, it’s helpful but not really a requirement by any means. Normal x86 code tends to be self-synchronizing, for example.