Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: