Why can't JIT compilers be used to create binaries?

JIT compilers are used to convert java byte code into native machine language. And, as far as I know, there is no program that can directly convert java-byte code to a binary file, such as .exe files. So why can't JIT compilers be used to create binary code from byte code?

+3
source share
5 answers

The JIT compiler compiles code dynamically.

  • It generates different code for different processor options.
  • It generates different code for different memory models, for example. For a 64-bit JVM, if the maximum heap size is <4 GB, 24 GB, 32 GB or more, you will create different codes in each case.
  • , .
  • , . , , , .

.

+4

JIT = Just In Time. *.exe . </nitpick>;)

, JVM , - . JVM ( "dll" ).

Java-: GCJ (http://en.wikipedia.org/wiki/Gcj). , Windows. Java-to-native.

+2

JIT , , .

, Maxine VM JIT, Java, VM, bootimage, . , .

, JIT, , , , JIT .

+1

Jit - re, - . Jit, Java- .

jit , . Jit- - Java. Jit - Java.

0

The IBM Java Runtime is able to store dynamic bytecode results for compiling native code in its shared data cache and share it between the JVM ( prooflink ).

0
source

All Articles