Re-target-ting Gcc to JVM
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sun Feb 6 02:17:00 GMT 2000
> Has anyone attempted to re-target C code to JVM opcodes.
Yes. The gcc mainline supports a PicoJava back-end, which apparently
supports a superset of the JVM.
A port that targets the JVM proper is at
http://archive.csee.uq.edu.au/~csmweb/uqbt.html#gcc-jvm
with Jasmin as the assembler.
> I also saw something on GCJ. Does this have the necessary stuff done
> to gas that would assemble any given java asm program and generate
> the corresponding class files with debugging info etc.?
I don't fully understand your question. GCJ actually supports a number
of translation directions, with Java source -> class files being one
option (-femit-class-file). In this case, gas is not used: jc1 emits
the class file directly.
Regards,
Martin
More information about the Gcc
mailing list