This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Can gcj cross compile C / C++ programs into java byte code?


>>>>> "Johan" == Johan Walles <johan.walles@appeal.se> writes:

Johan> I've read the FAQ at "http://gcc.gnu.org/java/faq.html";, but
Johan> the question isn't answered there.  Can gcj cross compile C /
Johan> C++ programs into java byte code?  Why (not)?

No, it can't.

Java bytecode doesn't have pointers and other features that are
assumed by C and C++.  Compiling C or C++ to the JVM would require a
fair amount of runtime work as well (for example, Java classes to
represent C pointers).

Tom


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