Machine-translated by Google. Questions are authored in English.
Top

Discussion

A just in time compiler translates

  • A.intermediate code to machine code during the execution of a program
  • B.source code into intermediate code before the program is ever once run
  • C.machine code back into a readable high level source program
  • D.assembly language into relocatable object code at load time

Answer: A

Correct answer: intermediate code to machine code during the execution of a program

A just-in-time compiler translates bytecode or intermediate code into native machine code while the program is running, typically after a method has been executed often enough to be worth compiling.

Doing it at run time has a real advantage over compiling ahead of time: the compiler can see the actual types and branch behaviour and specialise for them. The cost is the time spent compiling, which is why interpretation handles the cold code and only the hot paths are compiled.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.