home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- #
- # NAME
- # sop - stack operations
- # SYNOPSIS
- # sop files
- # DESCRIPTION
- # Find possible stack optimizations.
- # SEE ALSO
- # grep(1)
- # AUTHOR
- # Mikael R.K. Patel
- # Computer Aided Design Laboratory (CADLAB)
- # Department of Computer and Information Science
- # Linkoping University
- # S-581 83 LINKOPING
- # SWEDEN
- # Email: mip@ida.liu.se
- # HISTORY
- # Created on: 01 March 1990
- # Lasted updated: 02 June 1990
-
- if [ "$1" = "" ]
- then
- echo "Usage: sop file ..."
- else
- for file in $1
- do
- echo "Stack optimizations in: $file"
- egrep -n "swap drop | drop drop | rot rot | swap over | over over" $file
- echo
- done
-
- fi
-