scc

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

0008-z80-x.sh (643B)


      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 scc-nm -t x z80.out > $tmp1
     10 
     11 cat <<! > $tmp2
     12 0000000000000000 b .bss
     13 0000000000000000 d .data
     14 0000000000000000 t .text
     15 0000000000000001 B averylongbss
     16 0000000000000001 D averylongdata
     17 0000000000000001 T averylongtext
     18 0000000000000000 B bss1
     19 0000000000000002 b bss3
     20 000000000000000a C bss4
     21 0000000000000012 C bss5
     22 0000000000000000 D data1
     23 0000000000000002 d data3
     24 000000000000000a C data4
     25 0000000000000012 C data5
     26 0000000000000000 T text1
     27 0000000000000002 t text3
     28 000000000000000a C text4
     29 0000000000000012 C text5
     30                  U text6
     31 !
     32 
     33 diff $tmp1 $tmp2