Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

cxref(1)

Name

cxref − generate C program cross reference

Syntax

cxref [options] files

Description

The cxref command analyzes a collection of C files and attempts to build a cross reference table. The cxref command utilizes a special version 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. 

Options

−cPrints a combined cross-reference of all input files. 

−DnameDefines name to processor, as if by #define.  Default value is 1. 

−IdirSearches named directory for #include files whose names do not begin with a backslash (/).

−o fileDirects output to named file. 

−sOperates silently; does not print input file names. 

−tFormats listing for 80-column width. 

−UnameRemoves any initial definition of name. 

−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. 

Diagnostics

Error messages usually indicate a problem that will prevent the file from compiling. 

Files

/usr/lib/xcpp special version of C-preprocessor. 

See Also

cc(1). 

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