scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0002-z80-t.sh (258B)


      1 #!/bin/sh
      2 
      3 set -e
      4 trap 'rm -f $tmp1 $tmp2' EXIT HUP INT QUIT TERM
      5 
      6 tmp1=`mktemp`
      7 tmp2=`mktemp`
      8 
      9 size -t z80.out z80.out>$tmp1
     10 
     11 cat > $tmp2 <<EOF
     12 text	data	bss	dec	hex	filename
     13 5	3	3	11	b	z80.out
     14 5	3	3	11	b	z80.out
     15 10	6	6	22	16	(TOTALS)
     16 EOF
     17 
     18 diff $tmp1 $tmp2