This was an attempt to see what Visual C++ does to a simple function call, and a simple goto spam
type statement.
The results are unsurprising (function calls use the call
instruction, goto
uses the jmp
instruction).
I produced the assembly by inserting a breakpoint, running the "Debug -> Start Debugging" (F5), then hitting CTRL+ALT+D
to view the assembly.
It works good enough.
If you want to implement a virtual machine, for example, which reads in bytecode, your repl function (in, say, C) will look something like: