fpc/tests/sparc/asld.sh
mazen b05a217962 * making program assembling first as assembling the
RTL may fail. It should take log time before it succed
2003-05-26 22:10:19 +00:00

15 lines
503 B
Bash

#!/bin/sh
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 sparctest; fi
echo Linking sparctest
/usr/local/bin/sparc-linux/ld -s -L. -o "$1" link.res
if [ $? != 0 ]; then DoExitLink sparctest; fi