C# Programming - .NET Framework - Discussion

Discussion Forum : .NET Framework - General Questions (Q.No. 19)
19.
Which of the following statements are correct about JIT?
  1. JIT compiler compiles instructions into machine code at run time.
  2. The code compiler by the JIT compiler runs under CLR.
  3. The instructions compiled by JIT compilers are written in native code.
  4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
  5. The method is JIT compiled even if it is not called
1, 2, 3
2, 4
3, 4, 5
1, 2
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 1 of 2.

IPSITA said:   9 years ago
IL code converted into native code trough JIT compiler. Option 3 is wrong.
(1)

Aaron said:   9 years ago
Sorry guys, but 1, 2 and 4 are correct.

3 is incorrect because JIT compiles IL into native code it does not compile native code.
(1)

Bhavyadeep said:   1 decade ago
One of the correct option is 4th and not the 3rd. JIT compilation converts MSIL to native code on demand at application run time.

Huw Pendry said:   1 decade ago
I think this is a language problem, I suspect that the person posing the question was not a native English speaker.

The fact is that IL code is input to the JIT and native code is the output.

Some people read "3. The instructions compiled by JIT" as "the input to JIT" and some read it as "the output of JIT".

The problem is the use of the verb "compiled". The subject of this verb should be the input.

Eg: "C# is compiled by the compiler".

This means that option 3 is correct, but I would suggest that 3 and 4 should be re-written.

Thi said:   1 decade ago
JIT converts MSIL into machine language.

Sanjay sahu said:   1 decade ago
Option 3 is correct. Because JIT is a part of CLR(VES) which converts IL code into machine code gradually during execution of program.

A machine code is also known as native code. So option 4 is wrong.

Arun said:   1 decade ago
MSIL code is given input to the CLR. JIT compiles MSIL code.

Tejas said:   1 decade ago
Agree with Sandy. JIT compiles IL code, and not native code. The code JIT compiles to is native code.

Sandy said:   1 decade ago
Option 3 is wrong and option 4 is correct.. 100% sure.
So the correct options overhere are: 1, 2, & 4

Mehul said:   1 decade ago
@Ashutosh.
Only either 3 or 4 can be correct they both together can't be correct.


Post your comments here:

Your comments will be displayed after verification.