What opcode dispatch strategies are used in efficient interpreters?

后端 未结 8 1576
花落未央
花落未央 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 13:53

    Benchmarking is a good technique on making anything fast on given platform(s). Test, refine, test again, improve.

    I don't think you can get any better answer. There's lot of techniques to make interpreters. But I give you a tip, do not do trade offs, just choose what you really need and pursue those goals.

提交回复
热议问题