Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!tut.cis.ohio-state.edu!ukma!xanth!mcnc!decvax!ima!compilers-sender From: mmengel@cuuxb.ATT.COM (Marc W. Mengel) Newsgroups: comp.lang.c,comp.sources.wanted,comp.compilers Subject: Re: Search for a smarter C cross reference. Keywords: xref, C, cross reference, wanted, help Message-ID: <4020@ima.ima.isc.com> Date: 2 Jun 89 20:33:55 GMT References: <4007@ima.ima.isc.com> Sender: compilers-sender@ima.ima.isc.com Reply-To: mmengel@cuuxb.ATT.COM (Marc W. Mengel) Followup-To: comp.lang.c Distribution: usa Organization: AT&T-DSD, System Engineering for Resellers, Lisle IL Lines: 28 Approved: compilers@ima.UUCP Xref: utzoo comp.lang.c:19130 comp.sources.wanted:7652 comp.compilers:547 In article <4007@ima.ima.isc.com> jbh@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@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@ima.isc.com or, perhaps, Levine@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