News for hackers. Stuff that matters.
Re:RISC-V: The New Architecture on the Block by throwaway81523 on Thursday September 30, 2021 @03:12AM (#28703927)
The "1980's called" issue that always gets to me is the absence of arithmetic overflow (or divide by 0) detection. You end up having to generate several additional instructions if you want to catch those errors (-trapv in gcc). On other architectures that's done with condition flags or traps.

This doesn't apply to floating point, where condition flags (confusingly called exceptions in IEEE parlance) are mandated by IEEE 857 and afaik Risc-V implements them conformantly. I don't see why they couldn't also do something like that for integers.

Re:RISC-V: The New Architecture on the Block by GoblinSlayer on Thursday September 30, 2021 @05:32AM (#28704539)
I guess you use this mode when your application is IO bound.