1

Introduction to Compilers

1. What do you understand by the terms translator and compiler?

Ans: A translator or language processor is a program that translates an input program written in a programming language into an equivalent program in another language. Compiler is a type of translator, which takes a program written in a high-level programming language as input and translates into an equivalent program in low-level language such as machine language or assembly language. The program written in high-level language is known as source program, and the program converted into low-level language is known as object (or target) program. Moreover, compiler traces the errors in the source program and generates the error report. Without compilation, ...

Get Express Learning: Principles of Compiler Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.