Research V3 development
[unix-history] / man / man1 / cref.1
CommitLineData
4758c92b
KT
1.pa 1
2.he 'CREF (I)'2/5/1973'CREF (I)'
3.fi
4.in16
5.ti 0
6NAME cref -- make cross reference listing
7.sp
8.fi
9.in16
10.ti 0
11SYNOPSIS cref\b\b\b\b____ [ -soi\b\b\b\b____ ] name1 ...
12.sp
13.fi
14.in16
15.ti 0
16DESCRIPTION CREF makes a cross reference listing
17of files in assembler format (see AS(I)). The files
18named as arguments in the command
19line are searched for symbols (defined as a succession
20of alphabetics, numerics, '.', or '_', beginning with
21an alphabetic, '.', or '_').
22.sp
23The output report is in four columns:
24.nf
25.sp
26(1) (2) (3) (4)
27symbol file see text as it appears in file
28 below
29.sp
30.fi
31The third column contains the line number in the file
32by default; the -s\b\b__ option
33will cause the most recent name symbol to appear there
34instead.
35.sp
36CREF uses either an ignore\b\b\b\b\b\b______ file or an only\b\b\b\b____ file.
37If the -i\b\b__ option is given, it will take the next
38file name to be an ignore\b\b\b\b\b\b______ file; if the -o\b\b__ option
39is given, the next file name will be taken as an only\b\b\b\b____ file.
40Ignore\b\b\b\b\b\b______ and only\b\b\b\b____
41files should be lists of symbols separated by new lines.
42If an ignore\b\b\b\b\b\b______ file is given, all the symbols in the file
43will be ignored in columns (1) and (3) of the output.
44If an only\b\b\b\b____ file is given, only symbols appearing in the
45file will appear in column (1), but column (3)
46will still contain the most recent name encountered.
47Only one of the options -i\b\b__ or
48-o\b\b__ may be used.
49The default setting
50is -i\b\b__;
51all symbols predefined in the assembler are ignored, except
52system call names, which are collected.
53.sp
54.fi
55.in16
56.ti 0
57FILES Files t.0, t.1, t.2, t.3 are
58created (i.e. DESTROYED) in the working
59directory of anyone
60using cref\b\b\b\b____. This nuisance will be repaired soon.
61The output is left in file s.out\b\b\b\b\b_____ in the working directory.
62.sp
63/usr/lem/s.tab is the default ignore\b\b\b\b\b\b______ file.
64.sp
65.fi
66.in16
67.ti 0
68SEE ALSO as(I)
69.sp
70.fi
71.in16
72.ti 0
73DIAGNOSTICS "line too long" -- input line >131 characters
74.nf
75.sp
76"symbol too long" -- symbol >20 characters
77.sp
78"too many symbols" -- >10 symbols in line
79.sp
80"cannot open t.?" -- bug; see LEM
81.sp
82"cannot fork; examine t.out" -- can't start sort\b\b\b\b____
83.in 20
84.fi
85process; intermediate results are on files t.0\b\b\b___,
86t.1\b\b\b___,t.2\b\b\b___,t.3\b\b\b___. These may be sorted independently
87and the results concatenated by the user.
88.sp
89.in 16
90"cannot sort" -- odd response from sort\b\b\b\b____; examine
91.in 20
92intermediate results, as above.
93.sp
94.in16
95.nf
96"impossible situation" -- system bug
97.sp
98"cannot open" file -- one of the input names
99.in 20
100.fi
101cannot be opened for reading.
102.in16
103.nf
104.sp
105.fi
106.in16
107.ti 0
108BUGS The destruction of
109unsuspecting users' files should soon be fixed.
110A limitation that may eventually go away is the
111restriction to assembler language format. There
112should be options for FORTRAN, English, etc., lexical
113analysis.
114.sp
115File names longer than eight characters cause misalignment in
116the output if tabs are set at every eighth column.
117
118It should
119write on the standard output, not s.out.