butchur - cut some procedures out of a SUIF file
butchur [ options ] -only procname { , procname }* infile outfile
butchur [ options ] -all-but procname { , procname }* infile outfile
The butchur program cuts selected procedure and variable definitions out of a SUIF file. With the -only option, butcher includes only the specified definitions in the output file. With the -all-but option, butcher includes all except the specified definitions.
Note that it is legal to split definitions into different files by running butchur multiple times, then eventually link the definitions back together and run the program. butchur makes sure the semantics are unchanged. Anything in the file symbol table that would have to be shared is automatically moved into the interfile global symbol table.
-keep-unused
This option causes all file and interfile global
symbol table object to be retained, regardless of
whether they are still referenced. The default is
to retain only those symbol table objects that are
needed by procedures that are written out or annotations
on global symbols tables or the file set
entry.
This program was written by Chris Wilson.