This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Extending Gcc For a New Language
- From: Mike Stump <mrs at apple dot com>
- To: Kevin Atkinson <kevina at gnu dot org>
- Cc: Robert Dewar <dewar at gnat dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 5 Mar 2003 19:24:36 -0800
- Subject: Re: Extending Gcc For a New Language
On Wednesday, March 5, 2003, at 07:11 PM, Kevin Atkinson wrote:
The basic question is does gcc support those language features. Or
will I
have to add support for them. For example I assume gcc has support for
Virtual Inheritance and that support is shared between C++ and Java,
If your question is, is there a feature rich middle end that is shared
by all the frontends that has almost all the logic of all the existing
frontends, with just a little bit of semantic glue in the frontend
files that selects the features the language wants that is well thought
out and fully refactored, the answer is no.
Examples, the symbol table with things like namespace and using and
classes are figments of the C++ frontend only. To reuse, you would
have to actively pull out all that code from the C++ frontend into the
middle end, and make the C++ frontend and your front end use it. Other
examples, inheritance, vtables, templates, unification, namespaces,
virtual functions, overloading...
Non-examples, switch statement with int arguments, adding to 32 bit
ints together, functions, 64 bit variables, SIMD, call frames, stack
variables, pointers to doubles, global 32 bit int variables, multiple
translation units, cpp...