This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

C++ to bytecode?


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.


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