The two common types of programming language processing programs are: compilers and interpreters. An interpreter is a language processing program that directly executes a source program or an internal form of a source program. A compiler refers to a translation program that translates a source program written in a high-level language into an equivalent machine language format program.
#The two common types of programming language processing programs are: interpreters and compilers.
(Recommended learning: java introductory tutorial)
Related introduction:
Interpreter program:
Interpreter program is a language The processing program works basically the same as the compiler in terms of lexical, syntactic and semantic analysis, but when running the user program, it directly executes the source program or the internal form of the source program (intermediate code).
Universal interpreter refers to an interpreter that can run on multiple platforms or a system program that can interpret and execute statements from multiple high-level language source programs. Therefore, a general-purpose interpreter can also be called a portable interpreter. For example, Java language interpreters can run on different platforms.
Compiler:
A compiler, also called a compiler, refers to a translation program that translates a source program written in a high-level programming language into an equivalent target program in machine language format.
The compiler is a translation program implemented using a generative implementation approach. It takes a source program written in a high-level programming language as input, and a target program expressed in assembly language or machine language as output.
The compiled target program usually has to go through the running stage in order to run with the support of the running program, process the initial data, and calculate the required calculation results.
The above is the detailed content of What are the two common types of programming language processors?. For more information, please follow other related articles on the PHP Chinese website!