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

For sure. If you look at Old Testament K&R C and PDP-11 assembly language side by side, you can see the mapping very clearly. It's been a looooong time since I did PDP-11 at that level, but if memory serves, I'm pretty sure that a switch(e) {...} can be done as a single jump instruction with indexed-indirect addressing mode.


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

Search: