C virtual machine implementation