fwsGonzo / libriscv

The fastest RISC-V sandbox
BSD 3-Clause "New" or "Revised" License
526 stars 46 forks source link

Binary translation improvement #127

Closed fwsGonzo closed 4 months ago

fwsGonzo commented 5 months ago

Thinking a little bit about binary translation, it seems to me that turning it on its head may drastically improve performance as it is too eager to exit to the interpreter just to go right back. Instead, it could stay in bintr and TC jump between functions. Pretty much requires Clang at this point though. Musttail has serious drawbacks. Worth it?

Should be said that bintr is more than good enough right now, though. So one wonders if introducing more complexity is even worth it.

fwsGonzo commented 4 months ago

Not really interested in doing this. Performance is good and stable now.