4 ms·
In my opinion, the most tedious part of writing this sort of thing from scratch is the x86/x86-64 instruction encoding. Grab the Intel/AMD manuals or an opcode
by one_thawt 9y ago
In my opinion, the most tedious part of writing this sort of thing from scratch is the x86/x86-64 instruction encoding. Grab the Intel/AMD manuals or an opcode database and have fun. Other projects to study: LLVM, dynasm, asmjit, peachpy, luajit jit, Intel XED, etc.
- blt 9y agoyeah, it sucks. That is what turned me off of initial messing around with JITs. Wish I had known about GNU Lightning then.
- eliben 9y agoFWIW, the series concluding at https://eli.thegreenplace.net/2017/adventures-in-jit-compilation-part-4-in-python/ https://eli.thegreenplace.net/2017/adventures-in-jit-compila... build a Brainf*ck JIT in pure C++, then using LLVM, then in Python using PeachPy
- fasquoika 9y ago>dynasm, ... luajit jit Aren't these the same thing?