diff options
Diffstat (limited to 'test_compiler.sh')
-rwxr-xr-x | test_compiler.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_compiler.sh b/test_compiler.sh index 700afe5..65fb311 100755 --- a/test_compiler.sh +++ b/test_compiler.sh @@ -30,10 +30,10 @@ for i in c_compiler/test/in/*.c; do BASENAME=$(basename $i .c); cat $i | ./bin/c_compiler > c_compiler/test/out/$BASENAME.s 2> c_compiler/test/out/$BASENAME.stderr.txt - mips-linux-gnu-gcc -S -c c_compiler/test/in/$BASENAME.c -o c_compiler/test/ref/$BASENAME.s - mips-linux-gnu-gcc -static c_compiler/test/ref/$BASENAME.s -o c_compiler/test/ref/$BASENAME + mips-linux-gnu-gcc -O0 -S -c c_compiler/test/in/$BASENAME.c -o c_compiler/test/ref/$BASENAME.s + mips-linux-gnu-gcc -O0 -static c_compiler/test/ref/$BASENAME.s -o c_compiler/test/ref/$BASENAME - mips-linux-gnu-gcc -static c_compiler/test/out/$BASENAME.s -o c_compiler/test/out/$BASENAME + mips-linux-gnu-gcc -O0 -static c_compiler/test/out/$BASENAME.s -o c_compiler/test/out/$BASENAME qemu-mips c_compiler/test/ref/$BASENAME REFOUTPUT=$? |