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

Sebastian Schmidt <sc@iaxp01.inf.uni-jena.de>
Tue, 18 Jul 1995 13:11:11 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)
Re: GCC as front end for C++ browser? bill@amber.ssd.hcsc.com (1995-07-24)
Re: GCC as front end for C++ browser? mrs@cygnus.com (Mike Stump) (1995-07-27)
Re: GCC as front end for C++ browser? hstrelow@ing.puc.cl (strelow fiedler hans christian erich) (1995-07-31)
| List of all articles for this month |
Newsgroups: comp.compilers
From: Sebastian Schmidt <sc@iaxp01.inf.uni-jena.de>
Keywords: C++, tools
Organization: Compilers Central
References: 95-07-076
Date: Tue, 18 Jul 1995 13:11:11 GMT

Mike Young <mikey@mcs.com> wrote:
>[ extract C++ parser from GCC to use in a browser ]
>Does this sound viable as a quick, evenings-only project?


No way!


>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?


I tried it once and found it very hard. The basics of the intermediate
RTL-representation are very well documented in the .texi files that
come with gcc, but the details, especially the repreentation of the
C++ constructs could only be found reading the code. The problem is:
RTL contains a lot more information, gcc needs to generate target
code and debug information.


But if you're interested, you can have a look at some TRs I made:
ftp to gate.fzi.de:/pub/STONE/Documents/ecd_*


>Are there better, simpler ways to
>accomplish this same end?


You my have a look at cppp: (from the Catalog of compilers,
interpreters, and other language tools)


language: C++
package: cppp
version: 1.14
parts: parser (yacc)
author: Tony Davis <ted@cs.brown.edu>
location: wilma.cs.brown.edu:/pub/cppp.tar.Z
description: A compiler front-end for C++, with complete semantic
                                processing. Outputs abstract syntax graph.
restriction: Permission needed for incorporation into commercial software.
requires: Native C++ compiler, lex, yacc, make, sed (or hand editing)
status: Upgrading the back end.


--
e-mail: sc@iaxp01.inf.uni-jena.de
phone: (+49) 3641 631398
fax: (+49) 3641 631400
--


Post a followup to this message

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