sysprog21 / rv32emu

Compact and Efficient RISC-V RV32I[MAFC] emulator
MIT License
402 stars 97 forks source link

jit: Refine code generation #511

Open vacantron opened 3 weeks ago

vacantron commented 3 weeks ago

The current operation handlers of JIT are generated by the template in src/rv32_template.c. However, it is not worthwhile to do the additional conversion since it just uses the one-to-one mapping by tools/gen-jit-template.py. It makes the readability worse and be hard to develop new features.

Considering replacing the current template with the common header file which the implementations could be configured during the compile-time might be the better way.

Related Issues: