Hacker News new | ask | show | jobs
by one_thawt 3147 days 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.
3 comments

FWIW, the series concluding at 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
yeah, it sucks. That is what turned me off of initial messing around with JITs. Wish I had known about GNU Lightning then.
>dynasm, ... luajit jit

Aren't these the same thing?