Anatomy of a Compiler

Anatomy of a Compiler
复制标题

编译器剖析

DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
Julie Zelenski
Julie Zelenski
中科院分区:
--
文献类型:
--
作者:
Julie Zelenski

文献摘要

被引文献

相似文献

什么是编译器?编译器是一种程序,它接受用一种语言(源语言)编写的程序作为输入,并将其翻译成另一种语言(目标语言)的功能等效程序。源语言通常是高级语言,如C++或Python,目标语言通常是低级语言,如汇编或机器代码。在翻译时,编译器还报告错误和警告,以帮助程序员对源代码进行更正,以便完成翻译。从理论上讲,源和目标可以是任何语言,但编译器最常见的用途是将用C++等语言编写的ASCII源程序转换为可以在硬件上执行的特定于机器的结果。
What is a compiler? A compiler is a program that takes as input a program written in one language (the source language) and translates it into a functionally equivalent program in another language (the target language). The source language is often a high-level language like C++ or Python, and the target language is usually a low-level language like assembly or machine code. As it translates, a compiler also reports errors and warnings to help the programmer make corrections to the source so the translation can be completed. Theoretically, the source and target can be any language, but the most common use of a compiler is translating an ASCII source program written in a language such as C++ into a machine-specific result that can execute on hardware.