atari email archive

a collection of messages sent at Atari from 1983 to 1992.

C Cross-reference Utility

(1 / 1)


NOTICE TO ALL "C" PROGRAMMERS

I have just recently placed a C cross-reference program into 
SYS$SYSDEVICE:[GENERAL], called CXREF.

CXREF accepts a C source file as its input and puts out a ".CRF" file 
which contains a line numbered copy of the source and a cross-reference 
of all strings, literals, numeric constants, and symbols.  C reserved 
words and comments are ignored.

Strings are anything between a " and a ", i.e., "this is a string".

Literals are anything between a ' and a ', i.e., '0' is a literal.

Numeric constants are numbers.  i.e., 32 is listed from array[32];.

Symbols are seperated into two types, those whose first letter is 
uppercase and those that start with a lowercase letter.  These are 
listed under the headings:

--------------------|
SYMBOLS (UC)        |      for those starting with an uppercase
--------------------|

--------------------|
SYMBOLS (LC):       |      for those starting with a lowercase
--------------------|

The default extension for the input file is ".C"

By defining a word to run CXREF, one can use that word with an input 
filename to obtain a cross-reference listing.
EXAMPLE:

	WORD :== $ SYS$SYSDEVICE:[GENERAL]CXREF

        or

	WORD :== $ DOK:CXREF

To obtain a cross-reference:

	WORD FILENAME        (if FILENAME is a .C file extension)

This will input FILENAME.C and output FILENAME.CRF

or one could use:

	WORD FILENAME NEWNAME.EXT

and this would input FILENAME.C and output NEWNAME.EXT

Anyway, it is there for those who may find it useful and for those who 
won't, don't.  If you experience any difficulties let me know.  As if 
you wouldn't.

From:	KIM::MORRIS         19-SEP-1984 16:22  
To:	@SYS$MAIL:ENGINEER
Subj:	intermetrics assembler & utilities

To everyone using the Intermetrics 68000 assembler & utilities.

Please change the call to CDEFS.COM in your LOGIN.COM file to:-

$ @sys$sysdevice:[c68ar2v1.com]cdefs.com ! setup interc stuff

This will pick-up the latest release of the C compiler,assembler & utilities.

		Thank you.
		Jim. x7118.
Message 1 of 1

Sep 13, 1984