Search code examples
c#.netcompiler-constructioninterpreterjit

Is JIT compiler a Compiler or Interpreter?


My question is whether JIT compiler which converts the IL to Machine language is exactly a compiler or an interpreter.

One more question : Is HTML, JavaScript a compiled language or interpreted language?

Thanks in Advance


Solution

  • JIT (just in time) compiler is a compiler. It does optimizations as well as compiling to machine code. (and even called a compiler)

    HTML, Javascript are interpreted, they are read as-is by the web browser, and run with minimal bug fixes and optimizations.