A stack-based virtual machine in C++