Re: Weeding out unwanted include files

ddunn@netcom.com (David A Dunn)
Sat, 13 Aug 1994 05:17:41 GMT

          From comp.compilers

Related articles
[4 earlier articles]
Re: Weeding out unwanted include files gary@Intrepid.COM (1994-08-02)
Re: Weeding out unwanted include files g9gwaigh@cdf.toronto.edu (1994-08-03)
Re: Weeding out unwanted include files zstern@adobe.com (1994-08-04)
Re: Weeding out unwanted include files steve@cegelecproj.co.uk (1994-08-04)
Re: Weeding out unwanted include files bkoehler@sol.UVic.CA (1994-08-04)
Re: Weeding out unwanted include files Don.Caldwell@DallasTX.NCR.COM (Don Caldwell) (1994-08-05)
Re: Weeding out unwanted include files ddunn@netcom.com (1994-08-13)
Re: Weeding out unwanted include files throop@aur.alcatel.com (1994-08-14)
Weeding out unwanted include files Roger@natron.demon.co.uk (1994-08-15)
Re: Weeding out unwanted include files roedy@BIX.com (1994-08-17)
Re: Weeding out unwanted include files kendall@pot.East.Sun.COM (1994-08-15)
Re: Weeding out unwanted include files andy@research.canon.oz.au (1994-08-22)
Re: Weeding out unwanted include files kendall@pot.East.Sun.COM (1994-09-17)
| List of all articles for this month |

Newsgroups: comp.compilers
From: ddunn@netcom.com (David A Dunn)
Keywords: tools, C, comment
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: 94-07-090 94-08-025
Date: Sat, 13 Aug 1994 05:17:41 GMT

Along these same lines, a tool which would generate a symbol usage DAG
for an entire (very large) program could be extremely valuable.


For example:


----bar.h-------
#define SOME_VALUE 8


----foo.c-------


include "bar.h"


int global1;


foo()
{
    global1 = SOME_VALUE;
}


main()
{
    if (global1 == foo())
        ....
}
----------------------------------
Would produce something like this:


foo.c:main() -> foo.c:foo()
foo.c:global1;
foo.c:foo() -> foo.c:global1;
bar.h:SOME_VALUE
----------------------------------


For analyzing old code this kind of information could potentially
save you all kinds of grief. So does anyone have some time to
modify gcc and a linker???


Dave Dunn
[There are plenty of C cross-referencers, though I don't know of any that
deal well with preprocessor symbols. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.