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

> UB doesn't exist at an assembly level

cough https://riscv.org/wp-content/uploads/2018/05/10.45-clifford-...

There are plenty of undefined things in ISAs, writing to some internal ARM registries also springs to mind, but that's a bit of a red herring. Just because code with undefined behaviour doesn't map to some abstract machine model nicely, doesn't imply that code that doesn't invoke UB can't have a simple mapping to some abstract machine semantics.



Yes, things like illegal opcodes, or other things the hardware _does_ but isn't officially part of the spec... those things are almost as old as computers. Certainly as old as home computers.

The VSP hack on Commodore 64 comes to mind.




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

Search: