من نمیدونم چرا باید همه چیز رو برای شما شیرفهم کرد!!!! یک مقداری هم زحمت تحقیق به خودتون بدید دوست عزیز!
Interpreter (computing) - WiKi
In computer science, an interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without previously compiling them into a machine language program. An interpreter generally uses one of the following strategies for program execution:
- parse the source code and perform its behavior directly
- translate source code into some efficient intermediate representation and immediately execute this
- explicitly execute stored precompiled code[1] made by a compiler which is part of the interpreter system
Early versions of the Lisp programming language and Dartmouth BASIC would be examples of the first type. Perl, Python, MATLAB, and Ruby are examples of the second, while UCSD Pascal is an example of the third type. Source programs are compiled ahead of time and stored as machine independent code, which is then linked at run-time and executed by an interpreter and/or compiler (for JIT systems). Some systems, such as Smalltalk, contemporary versions of BASIC, Java and others may also combine two and three.
While interpretation and compilation are the two main means by which programming languages are implemented, they are not mutually exclusive, as most interpreting systems also perform some translation work, just like compilers. The terms "interpreted language" or "compiled language" signify that the canonical implementation of that language is an interpreter or a compiler, respectively. A high level language is ideally an abstraction independent of particular implementations.
HHVM
HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.
Compiling MSIL to Native Code
اینها رو هم بخونید بد نیست :Because the JIT compiler converts an assembly's MSIL to native code when individual methods defined in that assembly are called,
What is the Difference Between Compiler and Interpreter? | Compiler vs Interpreter
Interpreter Vs Compiler : Difference Between Interpreter and Compiler | Programming Tutorials, Articles and Examples
پس چی شد ؟! وقتی کل برنامه به Native کد ترجمه نشده باشد اسمش کامپایل کردن نیست. ولی وقتی قسمت قسمت و در زمان اجرا اون رو ترجمه میکنیم اسمش میشه تفسیر!