4 ms·
> Implemented in pure C language It seems to me that enormous performance gains could be attained by JIT-compiling the assembly instructions to native assembly
by amelius 11y ago
> Implemented in pure C language
It seems to me that enormous performance gains could be attained by JIT-compiling the assembly instructions to native assembly instructions.
- sgk284 11y agoHow would that interact with code that modifies itself?
- AlexAltea 11y agoIf the emulator detects a memory write to one of the already recompiled blocks it can invalidate the results of the previous translation. If branch occurs to that block or to a new area in memory where new instructions were emitted, it can translate that part and cache the results. With a JIT binary translator this is no big deal. However, AOT translation of self-modifying code would not work.
- asb 11y agoThis is how QEMU and its TCG works: http://git.qemu.org/?p=qemu.git;a=blob_plain;f=tcg/README;hb=HEAD http://git.qemu.org/?p=qemu.git;a=blob_plain;f=tcg/README;hb...
- pygy_ 11y agoIs it still written in plain C like the former dyngen?