Home

Awesome

simple-vm

Mostly a copy/paste of Simple Virtual Machine by Bartosz Sypytkowski.

cc simple-vm.c && ./a.out

It prints 8 because it runs the equivalent of fib(6) (hard-coded in the source).

Related