This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]