scc

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

0011-z80-P-x.sh (664B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp1=`mktemp`
      6 tmp2=`mktemp`
      7 trap "rm -f $tmp1 $tmp2; exit" 0 2 3
      8 
      9 nm -P -t x z80.out > $tmp1
     10 
     11 cat <<! > $tmp2
     12 .bss b 0000000000000000 0
     13 .data d 0000000000000000 0
     14 .text t 0000000000000000 0
     15 averylongbss B 0000000000000001 0
     16 averylongdata D 0000000000000001 0
     17 averylongtext T 0000000000000001 0
     18 bss1 B 0000000000000000 0
     19 bss3 b 0000000000000002 0
     20 bss4 C 000000000000000a a
     21 bss5 C 0000000000000012 12
     22 data1 D 0000000000000000 0
     23 data3 d 0000000000000002 0
     24 data4 C 000000000000000a a
     25 data5 C 0000000000000012 12
     26 text1 T 0000000000000000 0
     27 text3 t 0000000000000002 0
     28 text4 C 000000000000000a a
     29 text5 C 0000000000000012 12
     30 text6 U
     31 !
     32 
     33 diff $tmp1 $tmp2