3 ms·
The Emscripten Relooper algorithm "takes basic blocks of code - chunks of simple code, at the end of which are branches to other blocks of code - and generates
by politician 14y ago
The Emscripten Relooper algorithm "takes basic blocks of code - chunks of simple code, at the end of which are branches to other blocks of code - and generates high-level structure from that using loops and ifs."
http://mozakai.blogspot.com/2012/05/reloop-all-blocks.html http://mozakai.blogspot.com/2012/05/reloop-all-blocks.html
- pcwalton 14y agoThat's my point. The Relooper does a good job with vast majority of code that you might conceivably want to compile to JS, making the lack of goto not a problem in a practical sense for these compilers.
- politician 14y agoHah, sorry, I didn't know what Relooper did, so I posted a comment describing where to find out about it for other people.