0100 interpreted languages and compiled languages

9.1 Overview

计算机不能直接理解任何除机器语言以外的语言,所以必须要把程序员所写的程序语言翻译成机器语言才能执行程序。程序语言翻译成机器语言的工具,被称为翻译器。

  • There are two ways translator translation: one is compiled, the other is the explanation. The difference between the two ways that the different time points translation.
  • The compiler is compiled before execution of code, generating an intermediate code file.
  • Interpreter is promptly interpreted at run time, and immediately executed (when the compiler runs to explain the way, also known as interpreter).

9.2 execution

类似于请客吃饭:
编译语言:首先把所有菜做好,才能上桌吃饭
解释语言:好比吃火锅,边吃边涮,同时进行

Guess you like

Origin www.cnblogs.com/jianjie/p/12128807.html