This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
On Tue, Mar 04, 2003 at 04:19:56PM +0100, Lars Segerlund wrote:
> If I understand the bottom line it is that we 'should' have C++ in the
> frontends ?
My personal POV is that at least we should have a modern C, not K&R
unreadable crap. C++ would probably help even more for the kind of
complex manipulations that are done f.i. in ssa, but the reluctance
still seems too high.
> Also in regards to thrust, I do not se how this reflect's on not
> having C++ in the frontends ? I view the issue as having a minimal set
> of prerequitites for the frontend, there is no java, fortran, ada and
> such in the frontend. ( for ada I believe this to be wrong but I am not
> sure ).
>
> Also I do believe that the C++ libs and java libs are the only libs
> with C++ in them, in strict contrast to all other major languages
> supported by the compiler such as fortran, cobol, ada.
The ada frontend is written in ada and K&R C.
The ada library is written in ada.
The fortran frontend is written in ISO C.
The fortran library is written in atrociously mixed K&R/ISO C.
The C++ frontend is written in K&R C with gcc extensions (talk about perverted).
The C++ library is written in C++.
The java frontend is written in K&R C with maybe C++ in the future.
The java library is written in C++ and java.
Cobol is not in 3.2.2.
It's not that cut and dried.
OG.