Skip to content

Lower instruction decoding and dispatch overhead #88

Closed
@jserv

Description

@jserv

wip/instruction-decode branch breaks RISC-V instruction decoding and emulation into separate stage, meaning that it is feasible to incorporate further IR optimizations and JIT code generation. However, we do need additional efforts to make it practical:

  1. Executing RISC-V instructions by compiling the program a basic block at a time, thus avoiding unnecessary translation;
  2. Implementing an efficient way to look in a hash map for a code block matching the current program counter as wip/jit does;
  3. Reducing IR dispatch cost means of computed-goto or tail-call elimination (as wasm3 does).

All of the above should appear in wip/instruction-decode branch before its merge into master branch.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions