This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
C++ to bytecode?
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: "Dale E Martin" <dmartin at cliftonlabs dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 17:43:40 +0100 (BST)
- Subject: C++ to bytecode?
- References: <20020625163325.GA13186@cliftonlabs.com>
Dale E Martin writes:
> Hello! I'm a newbie on this list, and pretty much a newbie to gcj. First
> off, thanks for the work - I think gcj is very cool and something whose
> time has come!
>
> What I'm interested in is how generic the bytecode backend is? Is it
> possible (with some work obviously) to have the bytecode backend general
> enough to hook it to the other front ends, specifically, the g++ front end?
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.
Andrew.