1#!/bin/sh23set -e4cpu=${1?'missed cpu argument'}5exec >>test.log6exec 2>&178tmp1=tmp1.$$9tmp2=tmp2.$$10file=$cpu.s1112trap 'rm -f a.out $tmp1 $tmp2' EXIT13trap 'exit $?' HUP INT TERM1415$EXEC scc as -m $cpu $file1617sed -n '/^\#/ ! {18 /\#/ ! d19 s%.*#%%20 s%^[ ]*%%21 s%[ ]*$%%22 /^$/d23 s%[ ][ ]*%\24%g25 p26}' $file |27nl -b a > $tmp12829od -An -t x1 a.out |30tr 'a-z' 'A-Z' |31sed -n 's%.*:%%32 s%^[ ]*%%33 s%[ ]*$%%34 /^$/d35 s%[ ][ ]*%\36%g37 p' |38nl -b a > $tmp23940diff -u $tmp1 $tmp2