Theseus, a Static Windows Emulator

(neugierig.org)

49 points | by zdw 1 day ago

4 comments

  • nxobject 17 minutes ago
    A follow-up question I'd like to ask to the author: if I understand correctly, one of the ideas is that you can write "high-level", almost platform-independent translations like:

        regs.eax = 3;
        regs.eax = add(regs.eax, 4);
        windows_api();  // some native implementation of the API that was called
    
    and rely on optimizers to do as much "lowering" or specialization to a platform as possible. I'd like to ask: how reliable have optimizers been in gettting those results (e.g. how much fiddling with various -Oxxx flags)?
  • mmastrac 1 hour ago
    I think "recompiler" is the accepted term in the art, is it not?
  • mysterydip 2 hours ago
    That’s a really clever idea/solution I hadn’t thought of before, and yet it makes “of course, duh” sense as well.
  • pema99 1 hour ago
    See also the authors previous project retrowin32 https://github.com/evmar/retrowin32