4 ms·
I had a similar project idea for ages. Instead of LLVM it would static recompile into C macros or C++ inline function calls for each opcode. Then it would compi
by emerged 9y ago
I had a similar project idea for ages. Instead of LLVM it would static recompile into C macros or C++ inline function calls for each opcode. Then it would compile the output and run the game.
Emulation is just plain fun.
- taocp 9y agohttp://mp2.dk/blog/blog/2014/04/14/practical-and-portable-binary-recompilation/ http://mp2.dk/blog/blog/2014/04/14/practical-and-portable-bi...
- emerged 9y agoThe compiler tends to treat static variables very differently from locals. I was holding out for efficient local functions which can be forced inlined to keep the emulated registers as actual system registers. Sadly std::function doesn't play well with force inline on all platforms.