Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DIR="test"
- #cd $DIR
- for file in $DIR/*.gr8
- do
- #FILENAME=$(basename $file .gr8 | cut -d'-' -f3)
- FILENAME=$(basename $file .gr8)
- #./gr8 $file -o $DIR/xmlnew/$FILENAME.new.xml
- echo $FILENAME
- ./gr8 --target asm < $DIR/$FILENAME.gr8 > $DIR/programs/$FILENAME.asm
- yasm -felf32 $DIR/programs/$FILENAME.asm -o $DIR/programs/$FILENAME.o
- ld -melf_i386 -o $DIR/programs/$FILENAME $DIR/programs/$FILENAME.o -lrts
- ./$DIR/programs/$FILENAME > $DIR/output/$FILENAME.out
- diff -w --strip-trailing-cr $DIR/expected/$FILENAME.out $DIR/output/$FILENAME.out
- #diff $DIR/xml/$FILENAME.xml $DIR/xmlnew/$FILENAME.new.xml
- #./xml2dot.py $DIR/xml/$FILENAME.xml > $DIR/xml/$FILENAME.xml.dot
- #java -cp xml2dot.jar xml2dot.xml2dot $DIR/xml/$FILENAME.xml
- #dot $DIR/xml/$FILENAME.xml.dot -Tpng -o $DIR/images/$FILENAME.png
- #rm $DIR/xml/$FILENAME.xml.dot
- #echo $file
- #./fl < $file > ${DIR}outputs/$file
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement