<Self-examination study record> Course code 6370 "Compilation Technology" <1>

1.1 Concept of Compiler
Executing a high-level language program on a computer is generally divided into two steps:
1. Using a compiler to translate the high-level language program into a machine language program.
2. Run the resulting machine language program.
Generally speaking, a translation program refers to that it can transform a certain language program (source language program) into another language program (target language program), but the former and the latter are logically equivalent, so that The translator is called the compiler.
Execution process: source program => compiler => target program
, in addition to compiling and then executing the high-level language program, sometimes it can also be "interpreted" and executed.
A source language interpreter takes the source program as input, but does not generate the target program, but executes the source program itself while interpreting.
In fact, many of the construction and implementation techniques for compilers are equally applicable to interpreters.
(The explanation is recorded in the java basic teaching, so I won't record too much here)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326109776&siteId=291194637