This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using C++ in gcc (was Re: [RFC] type safe trees)
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, kenner at vlsi1 dot ultra dot nyu dot edu
- Cc: gcc at gcc dot gnu dot org, nathan at codesourcery dot com
- Date: Sat, 26 Jun 2004 10:38:08 -0400 (EDT)
- Subject: Re: Using C++ in gcc (was Re: [RFC] type safe trees)
> This might even be true, but a lot of the C++ complexity lies in the
> compiler, whereas a lot of the Ada complexity is in the run-time. The
> C++ run-time adds exceptions to the requirements imposed by C. Ada
> requires far more than that, AFAIK.
Yes, indeed, but of course if you write a compiler in Ada, you don't use much
of this run-time complexity, for two reasons. First you don't need tasking for a compiler (and similar complex run-time features). Secondly, you really don't want to have
the compiler depend on a lot of run-timne units.
In the case of GNAT, the subset of run-time units that can be used is strictly limited
and this limited set is enforced
by the makefile, which has an explicit (and fairly small)
list of runtime units that can be used.
(sorry this is not threaded, I am on a super slow line
where I can't use Mozilla).