[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]Internet C++
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]Internet C++ |
Date: |
Tue, 14 Aug 2001 10:52:38 +1000 |
Soeren Sandmann wrote:
> Yes, it will be very hard, but what if the frontend was strongly
> typed, like Java or C#? Then "by luck" there shouldn't be any type
> problems in the generated code.
It's not quite that simple. To generate the final IL
for a strongly-typed front-end, it is necessary for
the back-end to know the type of every value and
the definition of every class. This information is
lost when the parse tree is turned into RTL, as
far as I can tell from the gcc code. This seems to
be why gcj uses a separate code generator for Java
rather than an RTL back-end.
Cheers,
Rhys.