What opcode dispatch strategies are used in efficient interpreters?

后端 未结 8 1557
花落未央
花落未央 2020-12-29 13:27

What techniques promote efficient opcode dispatch to make a fast interpreter? Are there some techniques that only work well on modern hardware and others that don\'t work we

相关标签:
8条回答
  • 2020-12-29 14:06

    Just-in-time compilation is one.

    0 讨论(0)
  • 2020-12-29 14:07

    One big win is to store the source code in an intermediate form, rather than redoing lexical analysis and parsing during execution.

    This can range all the way from just storing the tokens, through Forth style threaded code and on to JIT compilation.

    0 讨论(0)
提交回复
热议问题