GCC, Clang, ICC do support computed gotos and you can fallback to ``while true`` loop + switch dispatch for others.
This is what Nim does: https://nim-lang.org/docs/manual.html#pragmas-computedgoto-p...
This is what Nim does: https://nim-lang.org/docs/manual.html#pragmas-computedgoto-p...
[0]: https://en.wikipedia.org/wiki/Threaded_code#Direct_threading [1]: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html