Professional Documents
Culture Documents
Theory of Compiler
Session: 2015-19
Year: 2018
Q: 01 - What is the role of compiler in computer science?
The role of a compiler in computer science is that it a special program
that processes statements written in a particular programming
language and turns them into machine language or "code" that a
computer's processor uses. Typically, a programmer writes language
statements in a language such as Pascal or C one line at a time using an
editor.
But if we answer this question very loosely then it must be the first
stage of compilation - Lexical Analysis phase where the Symbol Table is
constructed which stores all the symbols.