Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I wonder if any of those who claim that the RISC-V ISA is simple can remember without searching the documentation how to implement the checks for integer overflow after each arithmetic operation.

I mean, I can't give you the Hacker's Delight magic numbers for expressing integer division by a constant via multiplication on AArch64 or x86-64 off the top of my head either, but that's what we have compilers for. The fact that you sometimes have to look up how to do simple things is just part of programming.



You don't even need a full compiler, you can just use a macro assembler if you insist on doing purely "assembly" programming.


Overflow checks is not what we have C and C++ compilers for, though. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: