什么是解释器、编译器?
什么是编译器
摘自 Wiki Compiler 一段
A compiler is a computer program (or a set of programs) that
transforms source code written in a programming language (the source language) into another computer language (the target language), with the latter often having a binary form known as object code. The most common reason for converting source code is to create an executable program. 摘自 Wiki Interpreter
大体的意思:编译器是一种负责把一种编程语言写的代码转换成另一种计算机代码的计算机程序,而后者往往是以二进制的形式被称为目标代码。这个转换的过程的目的是生成可以直接执行的程序。
编译器产生的”另一种代码” 等着被执行。如果还不能直接执行,那就需要重新编译一遍,再交由计算机硬件执行。
编译器,往往是在「执行」之前完成,产出是一种可执行或需要再编译或者解释的「代码」。
什么是解释器
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 compilin