Re: GCC as front end for C++ browser?

"Mitchell N. Perilstein" <mnp@compass-da.com>
Sun, 16 Jul 1995 01:59:44 GMT

          From comp.compilers

Related articles
GCC as front end for C++ browser? mikey@mcs.com (1995-07-11)
Re: GCC as front end for C++ browser? mnp@compass-da.com (Mitchell N. Perilstein) (1995-07-16)
Re: GCC as front end for C++ browser? sanjay@clef.lcs.mit.edu (1995-07-16)
Re: GCC as front end for C++ browser? jan@janhh.shnet.org (1995-07-17)
Re: GCC as front end for C++ browser? sc@iaxp01.inf.uni-jena.de (Sebastian Schmidt) (1995-07-18)
Re: GCC as front end for C++ browser? vmulyk@bnr.ca (victor (v.) mulyk) (1995-07-21)
Re: GCC as front end for C++ browser? vmulyk@bnr.ca (victor (v.) mulyk) (1995-07-21)
Re: GCC as front end for C++ browser? rcd@dooley.cs.brown.edu (1995-07-23)
[3 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: "Mitchell N. Perilstein" <mnp@compass-da.com>
Keywords: C++, tools
Organization: Compilers Central
References: 95-07-076
Date: Sun, 16 Jul 1995 01:59:44 GMT

Mike Young <mikey@mcs.com> wrote:
: Does this sound viable as a quick, evenings-only project? Are there other
: tools that already do a good job of this? Is gcc's front end a suitable
: starting point? How hard is it to learn and use? Where do I find more
: information about gcc internals? Are there better, simpler ways to
: accomplish this same end?


GCC (2.6.?) seems to have an undocumented switch that dumps detailed
information about functions, at least; maybe it could be the basis for a
tool. Read source file gcc2*/c-aux-info.c for details.


    $ cat > a.c
    int x = 3;
    struct { int a; char *b; } y;
    char *f(int g){}
    main(){}
    $ gcc -aux-info foo a.c
    $ m foo
    /* compiled from: . */
    /* a.c:3:NF */ extern char *f (int g); /* (g) int g; */
    /* a.c:4:OF */ extern int main (void); /* () */


Please let me know if you write this tool, I want to use it!
---
  Mitchell N. Perilstein
  COMPASS Design Automation, Columbia MD USA
  mnp@compass-da.com
  Tel: 410-992-5700 x1225, Fax: 410-992-3536
--


Post a followup to this message

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