| ▲ | throwaway27448 2 hours ago | |||||||||||||||||||||||||
How do you differentiate the two? What is the benefit of such a distinction? Why not use eg threaded emulation vs recompiled emulation? | ||||||||||||||||||||||||||
| ▲ | drunken_thor 2 hours ago | parent | next [-] | |||||||||||||||||||||||||
In my limited understanding, static recompiling is like JIT transpilation from one arch to another where emulation runs each instruction calling behaviour depending on the instruction. As for tradeoffs my knowledge is not wide enough to declare anything certain. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | dmitrygr 2 hours ago | parent | prev [-] | |||||||||||||||||||||||||
Emulation visits instructions as they are executed. Static recompilation will (at translation time) visit instructions that can be discovered, even if they never run. eg:
an emulator will likely never visit that assignment. A static recompiler will translate it. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||