Browse Source

* making program assembling first as assembling the
RTL may fail. It should take log time before it succed

mazen 22 years ago
parent
commit
b05a217962
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/sparc/asld.sh

+ 4 - 4
tests/sparc/asld.sh

@@ -3,12 +3,12 @@ DoExitAsm ()
 { echo "An error occurred while assembling $1"; exit 1; }
 DoExitLink ()
 { echo "An error occurred while linking $1"; exit 1; }
+echo Assembling $1
+/usr/local/bin/sparc-linux/as -o "$1.o" "$1.s"
+if [ $? != 0 ]; then DoExitAsm system; fi
 echo Assembling system
 /usr/local/bin/sparc-linux/as -o system.o system.s
-if [ $? != 0 ]; then DoExitAsm system; fi
-echo Assembling sparctest
-/usr/local/bin/sparc-linux/as -o test0001.o test0001.s
 if [ $? != 0 ]; then DoExitAsm sparctest; fi
 echo Linking sparctest
-/usr/local/bin/sparc-linux/ld    -s -L. -o test0001 link.res
+/usr/local/bin/sparc-linux/ld    -s -L. -o "$1" link.res
 if [ $? != 0 ]; then DoExitLink sparctest; fi