1.1 Introduction

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Introduction to Compilers

Contents
q Introduction

q Language Processing System

q Compiler vs Interpreter
Why Compiler
• Writing machine language-numeric codes is time consuming
and tedious
• The assembly language has a number of defects
• Not easy to write
• Difficult to read and understand
Language Processing System
Compilers and Interpreters
• “Compilation”
• Translation of a program written in a source language into a semantically
equivalent program written in a target language

Input

Source Target
Compiler
Program Program

Error messages Output


Compilers and Interpreters (cont’d)
• “Interpretation”
• a program that reads an executable program and produces the results of
running that program
• usually, this involves executing the source program in some fashion

Source
Program
Interpreter Output
Input

Error messages
Thank
You

You might also like