Page 34 of 38
Prev
|
Index
|
Next
How It Works - Runtime
Not my area of expertise -- yet
First parsed by a JavaCC parser generated from grammar file
AST compiled to Java byte code
Extensive Java based runtime to support byte codes
Both JVM and PVM are stack-based virtual machines
example python module
a = 1 + 1
ex_runtime.py
CPython bytecode
1 0 LOAD_CONST 1 (1) 3 LOAD_CONST 1 (1) 6 BINARY_ADD 7 STORE_FAST 0 (a)
ex_runtime_pyc.txt