home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!stephsf.com!wengland
- From: wengland@stephsf.com (Bill England)
- Subject: Re: C cross referencer (was Re: locsym)
- References: <1992Aug.163742.18050@abigale.uucp> <22274@venera.isi.edu>
- Message-ID: <1992Sep3.184615.4144@stephsf.com>
- Date: Fri, 4 Sep 1992 01:46:15 GMT
- Organization: Stephen Software Systems Inc., Tacoma/Seattle, +1 800 829 1684
- X-Bytes: 1373
- Lines: 30
-
- In article <22274@venera.isi.edu> rod@venera.isi.edu (Rodney Doyle Van Meter III) writes:
- >[...]
- >
- >The next tool I'm looking for is a C cross referencer that will
- >handle ANSI syntax. Perl is the obvious choice for writing
- >such a tool; has anyone done it? I invested about two hours
- >in an extremely primitive one myself, but I don't want to
- >reinvent the wheel if somebody has designed and written one
- >already.
-
- Hmm, I'm not sure what you mean by "handle ANSI syntax."
- The easy way is to let your C compiler do the work and then
- pull the symbols out of the object files and libraries.
-
- The current version of GCC will produce "file.X" output
- that includes all function calls to a program, (properly
- protoized even. ) I did hack a quick perl function
- to combine a bunch of .X's into a single prototype.h file
- for an application. -I'll try and post that tomorrow-
-
- >I like to use it as I'm writing. cxref supplied w/ SunOS
- >barfs on my ragged code, and can't handle ANSI.
-
- True. Which compiler are you using on your Sun?
- --
- +- Bill England, wengland@stephsf.COM -----------------------------------+
- | * * H -> He +24MeV |
- | * * * ... Oooo, we're having so much fun making itty bitty suns * |
- |__ * * ___________________________________________________________________|
-