Hacker News new | past | comments | ask | show | jobs | submit login

Unstructured control flow is easily emulated with switch statements. In fact it's what emscripten did long before asm.js was made, IIRC.



Emscripten has a specially-designed algorithm called relooper for reconstructing control flow (there’s a paper on it!). Switch statements are its last resort.




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

Search: