[aarch64-port-dev ] Regarding Javac

Andrew Haley aph at redhat.com
Thu Oct 3 05:36:38 PDT 2013


On 10/03/2013 01:16 PM, Trivikram Chaudhary wrote:
> javac takes java files and produces byte code which is machine independent.
> So we need not modify the work done by javac while porting. However, javac
> itself has to be compiled and run on our machine to make it work but javac
> source code is written in java again.

Javac is a Java program  It is distributed as Java bytecode with a
small native-code loader that starts the Java virtual machine.  So,
you don't need to recompile javac.

However, you do need a Java virtual machine that will run on your
new processor.

> How to compile that on a new processor. Do we need to modify the
> source code according to architecture.

There is a (rather slow) Java virtual machine written entirely in C++.
You can use that.

Andrew.



More information about the aarch64-port-dev mailing list