This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: C++ to bytecode?
Dale E Martin writes:
> > No. The problem is that the semantics of Java an C++ are really quite
> > different, and without a good deal of work it wouldn't be possible to
> > generate bytecode in this way. Also, many of the tricks that C
> > programmers commonly use to override the type system wouldn't work.
>
> Ah yes, sorry, I know that there are lots of issues lurking but let's say I
> had written a whitepaper about how to deal with the semantic differences
> and was prepared to implement them in the code generator and runtime? (or
> pay someone to do it if I didn't do it myself.)
>
> Is the current bytecode backend implemented at all like a standard backend
> to gcc?
No. All that we do is walk over the parse trees generating bytecode
as we go.
The bytecode generator doesn't call gcc's back end ast all.
Andrew.