lsylvestre / upmc-3I018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upmc-3I018

MLCompiler + NativeVM

(OCaml >= 4.07)

$ cd src/MLCompiler/
$ make
$ ./compiler -vmconst
$ make -C ../NativeVM/  CONSTANTS_DIR=../MLCompiler
$ ./compiler -run tests/fact_de_6.js 
## runVM v3 (native)
## -----------------
## loading bytecode file: ../MLCompiler/tests/fact_de_6.js.bc
## -------------------
## 720
## -------------------
## VM stopping
$ ./compiler -rundebug tests/fact_de_6.js 
## runVM v3 (native)
## -----------------
## starting VM in debug mode
## ...
## === Execute next intruction ===
## >>> POP
## DISPLAY> 720
## State:
## PC = 59
## Globals = [Closure@3 - <>> <unit>]
## Stack = []
## Frame = Frame(pc=59,sp=0,env=<>)
## <- END
## === Finish execution ====
## -------------------
## VM stopping
$

JCompiler + NativeVM

$ cd src/JCompiler/
$ ant -buildfile build.xml uberjar
$ java -jar jcompiler.jar -vmconst
$ make -C ../NativeVM/  CONSTANTS_DIR=../JCompiler
$ java -jar jcompiler.jar tests/fact_de_6.js 
$ cd ../NativeVM
$ ./runvm ../JCompiler/tests/fact_de_6.js.bc 
## runVM v3 (native)
## -----------------
## loading bytecode file: ../JCompiler/tests/fact_de_6.js.bc
## -------------------
## 720
## -------------------
## VM stopping
$ ./runvm -d ../JCompiler/tests/fact_de_6.js.bc 
## === Execute next intruction ===
## >>> POP
## DISPLAY> 720
## State:
## PC = 59
## Globals = [Closure@3 - <>> <unit>]
## Stack = []
## Frame = Frame(pc=59,sp=0,env=<>)
## <- END
## === Finish execution ====
## -------------------
## VM stopping
$

About


Languages

Language:Java 38.8%Language:C 34.3%Language:OCaml 21.7%Language:Lex 1.8%Language:JavaScript 1.4%Language:C++ 0.9%Language:Makefile 0.7%Language:Standard ML 0.2%Language:Shell 0.1%