This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can gcj cross compile C / C++ programs into java byte code?
- To: Johan Walles <johan dot walles at appeal dot se>
- Subject: Re: Can gcj cross compile C / C++ programs into java byte code?
- From: Tom Tromey <tromey at redhat dot com>
- Date: 31 Aug 2001 10:44:28 -0600
- Cc: gcc at gcc dot gnu dot org
- References: <3B8F709D.7040403@appeal.se>
- Reply-To: tromey at redhat dot com
>>>>> "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