Moved over first rbtree test from koka_bench and integrated Kraken via compiler wrapper script that calls the partial_evaluator / compiler and then emits a wrapper script that runs the resulting wasm via wasmtime.
This commit is contained in:
10
koka_bench/kraken_wrapper.sh
Executable file
10
koka_bench/kraken_wrapper.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
OUR_DIR="$(dirname $(readlink -f $0))"
|
||||
SOURCE="$1"
|
||||
OUT_DIR="$2"
|
||||
OUT_NAME="$3"
|
||||
scheme --script "$OUR_DIR/../partial_eval.scm" $SOURCE
|
||||
mkdir -p "$OUT_DIR"
|
||||
mv ./csc_out.wasm "$OUT_DIR/$OUT_NAME.wasm"
|
||||
printf '#!/usr/bin/env bash\nwasmtime "$(dirname $(readlink -f $0))/'"$OUT_NAME"'.wasm" $@' > "$OUT_DIR/$OUT_NAME"
|
||||
chmod 755 "$OUT_DIR/$OUT_NAME"
|
||||
Reference in New Issue
Block a user