answersLogoWhite

0

Is there a Java native code compiler?

Updated: 8/16/2019
User Avatar

Wiki User

14y ago

Best Answer

Native compilers do not create bytecode that are interpreted by a Java Virtual Machine but create native executable.In other words,instead of creating .class files it create .exe. Excelsior JET is one of them. GCJ is second of them. JCGO is the 3rd of them (it translates your Java application into a group of .c/h files which could be compiled to optimized machine native code using a standard C/C++ compiler).

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there a Java native code compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does a compiler perform?

A compiler converts high-level source code into native machine. In the case of Java, source code is compiled to Java byte code suitable for interpretation by the Java virtual machine which produces the machine code.


What does the Java compiler translate Java source code to?

The Java compiler translates Java source code to Java byte code.


What is the difference between java compiler and C compiler?

Greetings Technologist. The Java compiler compiles Java code, whereas the C compiler compiles C Code HTH Richard Wolf Software Architect


How does VM code compiler works?

The Java virtual machine is not a compiler, it is an interpreter which primarily performs runtime-translation of Java byte code (the native language of the Java virtual machine) to machine-code (the native language of the physical machine). The Java compiler, on the other hand, is a separate program used to perform compile-time conversion of high-level Java source code to the lower level byte code. Java byte code is highly portable; once compiled, any architecture or platform that implements a JVM can execute the byte code without modification.


Garbagecolllecter in java?

Yes, Java programming language has a Garbage collector for unused memory. and the best part about it is that it does it automatically. The Garbage Collector is built into the Java Virtual Machine, and will do automatic garbage collection for you. If you chose to compile your Java code down to native code (via a Java->native code compiler), then NO garbage collection is done for you.


Why is a just in time compiler useful for executing java program?

I'm not sure if it's "useful" as much as it is the fact of it being how the Java compiler works. However, there's a GCC frontend for compiling Java to native machine code rather than bytecode.


Where does bytecode come from java?

It is created by the Java compiler, based on the source code (the .java file).


Why is a just-in -time compiler useful for executing Java programs?

I'm not sure if it's "useful" as much as it is the fact of it being how the Java compiler works. However, there's a GCC frontend for compiling Java to native machine code rather than bytecode.


Is compiler is platform independent?

No. (Of course you should specify what compiler you are talking about.)


Technical difference between native code and cross compiler?

Native code is simply machine-dependent code (machine code). It is the only language "understood" by the machine, however the code is non-portable; the code will only execute correctly upon the platform (the architecture and operating system) for which it was specifically intended. A cross-compiler is a compiler which is capable of producing machine code for machines other than (or in addition to) the one upon which the compiler is executing. This is useful for creating software for systems which cannot be programmed directly, such as SmartPhones. Instead, the software is developed on another system (such as a PC or Mac) and compiled with a cross-compiler. A compiler is simply a software program which converts high-level code into a lower-level code. The lower-level code is typically native machine code but there are exceptions. For example, the Java compiler compiles to Java byte code which is suitable for interpretation by any Java virtual machine implementation. There are also compilers that can convert C++ to C. However, it is not possible to increase the amount of abstraction using a compiler -- this can only be done manually.


Which compiler compiles the IL code to native code?

Just-In-Time compiler


What is use of compiler in c?

The compiler translates source code into machine code. As opposed to java, this is a machine specific operation.