Is C# is a compilar or interpreter?
How to differentiate these two?
Thanks inadvance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 31, 2011, 9:31 AM
As Pravin also said, an interpreter translates each line of source code to native code and then executes that. It will still do this even if a line has been translated previously.
In contrast, the JIT compiler compiles a method to native code the first time it is called and caches the native code. If the method is called again, the native code is obtained from the cache rather than being generated afresh.
Pravin MorePosted Oct 31, 2011, 8:58 AM
see,a compiler translates from one language to another language. Since a JIT compiler receives an IL as its input and outputs native machine binary, it easily fits this criteria and should be called a compiler i think. n one more thing is ,JIT compiler produces binary machine codes translating block source code. Interpreter translates line by line......so JIT is Compilar.
Thanks,
Pravin.