Lecture 2

                            Introduction

Simple taxonomy of compilation process:



The main role of compiler is to report any errors in the source program that it detects during the compilation process. (e.g. a missing semicolon at the end of a statement)

Introduction of Compiler Design:



The program written in a high-level language is known as a source program, and the program converted into a low-level language is known as an object (or target) program. Without compilation, no program written in a high-level language can be executed. For every programming language, we have a different compiler; however, the basic tasks performed by every compiler are the same.


Compilation process operates as a sequence of phases each of which transforms one representation of the source program to another.



Front End: Recognizes legal and illegal programs presented to it. Consists of two modules: Scanner & Parser.








Comments

Popular posts from this blog

Lecture1