cd Yap4.3.2/sslittle
echo "=========== Yap preparations =============="
$SIM ./yap <<EOF
['chat_parser.pl'].
save_program(chat_parser).
EOF
$SIM ./yap <<EOF
['boyer.pl'].
save_program(boyer).
EOF
echo "=========== yap chat threaded =============="
$SIM  ./yap chat_parser <<EOF
q.
EOF
echo "=========== yap boyer threaded =============="
$SIM ./yap -h 10000 -s 10000 -t 10000 boyer <<EOF
q.
EOF
cd ../..

cd Yap4.3.2/sslittle-sw
echo "=========== Yap preparations =============="
$SIM ./yap <<EOF
['chat_parser.pl'].
save_program(chat_parser).
EOF
$SIM ./yap <<EOF
['boyer.pl'].
save_program(boyer).
EOF
echo "=========== yap chat switch =============="
$SIM  ./yap chat_parser <<EOF
q.
EOF
echo "=========== yap boyer switch =============="
$SIM ./yap -h 10000 -s 10000 -t 10000 boyer <<EOF
q.
EOF
cd ../..

cd ocaml-2.04-ss
echo "=========== ocaml ocamllex threaded =============="
$SIM boot/ocamlrun-bin boot/ocamllex parsing/linenum.mll
echo "=========== ocaml ocamlc threaded =============="
$SIM boot/ocamlrun-bin boot/ocamlc -I boot -I parsing -c stdlib/oo.ml
cd ..

cd ocaml-2.04-ss
echo "=========== ocaml ocamllex switch =============="
$SIM boot/ocamlrun-bin-sw boot/ocamllex parsing/linenum.mll
echo "=========== ocaml ocamlc switch =============="
$SIM boot/ocamlrun-bin-sw boot/ocamlc -I boot -I parsing -c stdlib/oo.ml
cd ..

cd gforth-0.4.9-19990617/sslittle-indirect
echo "=========== gforth prims2x =============="
$SIM ./gforth-fast --die-on-signal -p ".:~+:.." -i kernl32l.fi -m 100000 prims2x.fs -e "c-flag on s\" ../prim.b\" ' output-c process-file bye"|diff -c - ../engine/prim.i
echo "=========== gforth benchgc =============="
$SIM ./gforth-fast -e 52000 ../../forth-bench/garbage-collection-1.1/bench-gc2.fs -e bye
cd ../..

cd scheme48-0.53
echo "=========== scheme48 =============="
echo "Note: this takes forever to simulate"
echo "      we modified the simulator to only simulate the first 10e8 instructions"
srcdir=. lib=scheme image=scheme48.image USER=anton $SIM scheme48vm-bin -i build/initial.image -a batch
cd ..
