Search for a smarter C cross reference.
Marc W. Mengel
mmengel at cuuxb.ATT.COM
Sat Jun 3 06:33:55 AEST 1989
In article <4007 at ima.ima.isc.com> jbh at bnrunix.uucp (John B. Hampton) writes:
> ... I would appreciate knowing of a similar xref for the C language...
> o Need source for the xref itself in C or executables runnable on
> Sun 4 and HP 9000/300.
> o The sizes and offsets should appear within a "normal" (cxref-
> type) cross reference listing along with other info.
> o Would be nice to have running totals in a listing beside the
> pertinent data items.
If you compile a program with the -g option, and run "nm" on
it, you will get a raw listing of the base information you
want here; piping the output to "awk" and "sort" should make
a pretty listing in the format you want. (i.e. to compute
running totals and/or group local variable names with their
enclosing function's name, etc.
>John Hampton (rti!bnrunix!jbh), 919-991-8146
--
Marc Mengel mmengel at cuuxb.att.com
attmail!mmengel
...!{lll-crg|att}!cuuxb!mmengel
[If anybody actually does this, please let me know. -John]
--
Send compilers articles to compilers at ima.isc.com or, perhaps, Levine at YALE.EDU
Plausible paths are { decvax | harvard | yale | bbn}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers. Meta-mail to ima!compilers-request
More information about the Comp.lang.c
mailing list