>>106381196
I assume you've got the theory/definitions part. Now understand this: All roads lead to LLVM.
Or.. take a look at the native zig backend. You can also use established langs to make a VM, which is easy with readily available mature and simple projects, especially stack machine.