VMを作るの Writing a VM
Read instruction: CALL p (1 arg/s)
argument: STACK: pop() -- new stack size: 2
type=3
Read instruction: END
Read instruction: PUSH INTEGER_LITERALSTACK: push() -- new stack size: 3Read instruction: TARGET_CALL_BLOCK upto (1 arg/s)
STACK: pop() -- new stack size: 2
STACK: pop() -- new stack size: 1
argument: STACK: pop() -- new stack size: 0
type=3
Read instruction: END
Read instruction: PUSH INTEGER_LITERALSTACK: push() -- new stack size: 1Read instruction: TARGET_CALL_BLOCK upto (1 arg/s)
STACK: pop() -- new stack size: 0
STACK: pop() -- new stack size: ffffffff
argument: STACK: pop() -- new stack size: fffffffe
type=3
This is what happens when you write a VM. You get a stack with length 0xfffffffe.
