commit
afaa20a44d
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "FILENAME is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Generating assembly code for file ${FILENAME}"
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrr ${FILENAME}
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "FILENAME is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Generating assembly code for file ${FILENAME}"
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs ${FILENAME}
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "FILENAME is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Running file ${FILENAME}"
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrr --run ${FILENAME}
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "FILENAME is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Running file ${FILENAME}"
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs --run ${FILENAME}
|
@ -0,0 +1,2 @@
|
||||
.space 5120
|
||||
.text
|
@ -0,0 +1,22 @@
|
||||
la a0, $str$prototype
|
||||
lw t0, 0(a0)
|
||||
lw t1, 4(a0)
|
||||
lw t2, 8(a0)
|
||||
li t3, 1
|
||||
la a0, allChars
|
||||
li t4, 256
|
||||
mv t5, zero
|
||||
initchars_1:
|
||||
sw t0, 0(a0)
|
||||
sw t1, 4(a0)
|
||||
sw t2, 8(a0)
|
||||
sw t3, 12(a0)
|
||||
sw t5, 16(a0)
|
||||
addi a0, a0, 20
|
||||
addi t5, t5, 1
|
||||
bne t4, t5, initchars_1
|
||||
jr ra
|
||||
.data
|
||||
.align 2
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
echo "Running all test cases inside src/test/data/pa3/sample/ folder)"
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs --test --run --dir src/test/data/pa3/sample/ --maxCycles 65536
|
Loading…
Reference in new issue