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

Because that overflag makes all the difference (no pun intended), I wouldn't say that they are the same, but that comparison usually involves subtraction.

I remember coming across a set of lecture slides for a CS course on architecture that used its own toy architecture with neither flags nor separate comparison instructions - saying that comparison is the same as subtraction gives people the entirely wrong idea, and leads to the sort of bugs mentioned in this article.



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

Search: