News for hackers. Stuff that matters.
Re:Experiments in NES JIT Compilation by emerged on Monday August 21, 2017 @09:17PM (#15069028)
I've been meaning to do something similar, except by generating C code which is compiled JIT. This way the compiler can optimize blocks of 6502 in more efficient ways than just a direct mapping between opcodes and registers. Of course there's no real purpose to doing this, but it's on my backlog of "projects to do if I'm ever really bored" - one of my first ever C++ projects was writing a dynamic recompiler for 6502, nearly 20 years ago.
Re:Experiments in NES JIT Compilation by Gaelan on Monday August 21, 2017 @09:59PM (#15069183)
I think the common way to do something like this these days would be to generate LLVM IR.