gensys.sh (196B)
1 #!/bin/sh 2 3 sed -n " 4 s/[ ]*#.*// 5 /$1/p" syscall.lst | 6 while read num name nargs 7 do 8 cat <<EOF > $name.s 9 .file "$name.s" 10 11 .globl $name 12 $name: 13 li 0,$num 14 sc 15 mfcr 0 16 b _cerrno 17 EOF 18 19 done
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |