cxref(1) General Commands Manual cxref(1)Name
cxref - generate C program cross reference
Syntax
cxref [options] files
Description
The command analyzes a collection of C files and attempts to build a cross reference table. The command utilizes a special version of 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-c Prints a combined cross-reference of all input files.
-Dname Defines name to processor, as if by #define. Default value is 1.
-Idir Searches named directory for files whose names do not begin with a backslash (/).
-o file Directs output to named file.
-s Operates silently; does not print input file names.
-t Formats listing for 80-column width.
-Uname Removes 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 speci-
fied 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 Alsocc(1).
cxref(1)
Check Out this Related Man Page
cxref-cpp(1) General Commands Manual cxref-cpp(1)NAME
cxref-cpp - A modified C preprocessor to use with cxref.
SYNOPSIS
cxref-cpp ...
DESCRIPTION
To improve the output that is available for the source code for cross-referencing a modified version of the GNU CPP v2.7.2 is supplied
(named cxref-cpp).
This modified C preprocessor allows for a finer control over some features of the preprocessing that are not important for a compiler. In
a standard preprocessor, the preprocessor directives are intended for use only by the preprocessor, so passing the information through is
not important.
With cxref-cpp, there are some features that are different to the standard GNU CPP:
Compared to gcc versions earlier than version 2.8.0 there is an extra option that will output the #include lines from the source
file. In version 2.8.0 and later this option is present.
Comments trailing a #include or a #define are not preserved by all versions of gcc even if the -C option is used. This is not
important while compiling, but is useful for documenting.
The cxref-cpp program will take on the personality of the installed version of gcc so that the gcc header files can be parsed. This
means that it includes the same default include directory paths and macro definitions. The file that contains these definitions is
called cxref-cpp.defines and is installed by the cxref-cpp-configure program or specified by the -cxref-cpp-defines command line
option.
OPTIONS
The same as for gcc, apart from '-cxref-cpp-defines' described above.
SEE ALSO cxref(1), cxref-cpp-configure(1), gcc(1)
May 9, 2004 cxref-cpp(1)
While compiling and executing i get the following error.
Error at line 1200, column 1 in file xxx.pc
{
1
PCC-S-02201,Encountered the symbol "{" when expecting one of the following:
; , = < [
please help (1 Reply)
Hi
I have a cross reference file which contains 86000 records. The data is old number:new number. There are 100s of files where i need to search for old number and append corresponding new number (preceded by @) to the line containing old number. The files contain millions of records.... (9 Replies)