编译程序 COMPILER 张志刚 1997-01-01   Compiler is a program that translates a high-level programming language such as C or PASCAL into a machine language program.A compiler translates the entire program into machine language at the same time,checking syntax, and posting error messages or warnings as appropriate.Only when this process is complete can the program execute.This is in contrast to an interpreter,which translates and then executes one line at a time.Compilers are language-specific;they can only compile the source code from one specific programming language into machine language.   编译程序是把高级编程语言如C或PASCAL语言翻译成机器语言的程序。编译程序在把整个程序翻译成机器语言的同时,校验语法并且适时给出错误信息及警告。只有在这一过程完成后被编译的程序才能执行。这与解释程序不同,解释程序每次对程序是逐条翻译并执行的。编译程序是针对特定语言的;它们只能将一特定编程语言编写的源代码编译成机器语言。