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

If your CPU supports keeping function return addresses on a stack that you can push other things onto, you can do an indirect jump by pushing the address you want to jump to and then "returning" to it. That's a lot easier than self-modifying code or massive switch statements, and just as easy on Harvard as on von Neumann architectures.


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

Search: