test native compiler in moreCfgs.sh

This commit is contained in:
dzaima 2023-01-30 23:43:19 +02:00
parent dbeb0e0c2f
commit 74cfec9704
3 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,8 @@
#!/usr/bin/env bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 path/to/mlochbaum/BQN"
exit
fi
make heapverify && echo 'heapverify:' && ./BQN -M 1000 "$1/test/this.bqn" -noerr bytecode header identity literal namespace prim simple syntax token under undo unhead || exit
make rtverify && echo 'rtverify:' && ./BQN -M 1000 "$1/test/this.bqn" || exit
make CC=gcc c && echo 'gcc:' && ./BQN -M 1000 "$1/test/this.bqn" || exit

View File

@ -24,6 +24,8 @@ make f='-DVMPOS=0' c && ./BQN -p 2+2 || exit
make f='-DDONT_FREE' c && ./BQN -p 2+2 || exit
make f='-DOBJ_COUNTER' c && ./BQN -p 2+2 || exit
make f='-DNO_RT' c && ./BQN -p 2+2 || exit
make f='-DNATIVE_COMPILER' c && ./BQN -p 2+2 || exit
make f='-DNATIVE_COMPILER -DONLY_NATIVE_COMP -DFORMATTER=0 -DNO_RT -DNO_EXPLAIN' c && ./BQN -p 2+2 || exit
make f='-DLOG_GC' c && ./BQN -p 2+2 || exit
make f='-DWRITE_ASM' c && ./BQN -p 2+2 || exit
make f='-DUSE_PERF' c && ./BQN -p 2+2 || exit

View File

@ -1,4 +1,8 @@
#!/usr/bin/env bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 path/to/mlochbaum/BQN"
exit
fi
make f='-DDEBUG -DHEAP_VERIFY -DJIT_START=0' single-c
echo 'alljit+heapverify:' && ./BQN -M 1000 "$1/test/this.bqn" -noerr bytecode header identity literal namespace prim simple syntax token under undo unhead || exit
echo 'singeli:';make o3n-singeli && ./BQN -M 1000 "$1/test/this.bqn" || exit