Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1V)

CXREF(1)  —  USER COMMANDS

NAME

cxref − generate C program cross-reference

SYNOPSIS

cxref [ −c ] [ −w[num] ] [ −o file ] [ −t ] files

DESCRIPTION

cxref analyzes a collection of C files and attempts to build a cross-reference table.  cxref utilizes a special option of cpp to include #define’d information in its symbol table.  It produces a listing on standard output of all symbols (auto, static, and global) in each file separately, or with the −c option, in combination.  Each symbol contains an asterisk (∗) before the declaring reference. 

SYSTEM V DESCRIPTION

The System V version of cxref, run as /usr/5bin/cxref, makes the C preprocessor search for include files in /usr/5include before searching for them in /usr/include. 

OPTIONS

In addition to the −D, −I and −U options (which are identical to their interpretation by cc(1V)),thefollowingoptionsare cxref:

−c Print a combined cross-reference of all input files. 

−w[num]
Width option which formats output no wider than num (decimal) columns.  This option will default to 80 if num is not specified or is less than 51. 

−o file
Direct output to named file. 

−s Operate silently; does not print input file names. 

−t Format listing for 80-column width. 

SEE ALSO

cc(1V)

DIAGNOSTICS

Error messages are unusually cryptic, but usually mean that you cannot compile these files, anyway. 

BUGS

cxref considers a formal argument in a #define macro definition to be a declaration of that symbol. For example, a program that #includes ctype.h, will contain many declarations of the variable c. 

Sun Release 3.2  —  Last change: 10 April 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026