Initial commit
This commit is contained in:
16
compile
Executable file
16
compile
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# stop script at first fail
|
||||
set -e
|
||||
|
||||
if [ "$#" -ne 1 ] ; then
|
||||
echo "usage: $0 file.vsl"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
name="`dirname $1`/`basename $1 .vsl`"
|
||||
|
||||
# translating from VSL to LLVM IR (.ll)
|
||||
java -jar build/libs/TP2.jar < $name.vsl > $name.ll
|
||||
|
||||
clang $name.ll -o $name
|
||||
Reference in New Issue
Block a user