Posts

Showing posts from February, 2024

Lecture 2

Image
                            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.

Lecture1

Image
  What is Compiler? Programming Language are notation for describing computation to people and to machine. All the software running on the people was written in the programming language. Types of Language: High level Language. Low level Language. Machine Level Language. A program must be translated into a form in which it can be executed by a computer. The software system that do this translation is known as compiler . What is Compiler Constructor? A compiler is a program that can read a program in one language, source language and in the target language. Computer program that can translate program written into a high level language to the machine level language of a computer. What is computer program ? A computer program is a set instructions that can be executed by the computer to perform a specific task. A computer program usually written by the computer programmer in a programming language . What is Programming Language? A computer program is  a set of instruction that can...