scc

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

0001-z80.sh (207B)


      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 z80.out >$tmp1
     10 
     11 cat > $tmp2 <<EOF
     12 text	data	bss	dec	hex	filename
     13 5	3	3	11	b	z80.out
     14 EOF
     15 
     16 diff $tmp1 $tmp2