1. COMPILER V/S
INTERPRETER
BY ANUJYOTI DE
STREAM = INFORMATION TECHNOLOGY(2nd Year)
UNIVERSITY ROLL =11000222006
SUBJECT = COMPUTER ORGANIZATION (PCC CS-302)
2. INTRODUCTION ( PART -1)
WHAT IS COMPILER?
A Compiler is a piece of code that translates the high level language into
machine language.
When a user writes a code in high level language and wants it to execute , a
specific compiler which is designed is used before it will executed.
The Compiler scans the entire program first and then translates it into
machine code which will be executed by computer processor and the
corresponding tasks will be performed.
3. INTRODUCTION (PART-2)
WHAT IS INTERPRETER ?
Interpreters are not much different than compilers.
They also converted high level language into machine readable binary
equivalents.
Each time when an interpreter gets a high level language code to be
executed, it converts the code into an intermediate code before converting it
into machine code.
Each part of code is interpreted and then execute separately in a sequence
and if any error is found in the code it will stop the interpretation of the
code without translating the next set of codes.
5. ADVANTAGES OF COMPILER
Since Compiler converts the program to native code of target
machine(Object Code),faster performance can be expected.
There is a scope for code optimization. Hence ,it increases the quality and
efficiency of code by making some modifications in the code.
8. ADVANTAGES OF INTERPRETER
Process of execution can be done in a single stage . There is no need of
compilation stage.
Alteration of codes possible during runtime.
Really useful for debugging the codes(because source code execution can be
analyzed in an IDE).
Facilitates interactive code development.
11. CONCLUSION
With the help of this PowerPoint presentation, we clearly understand the
Definitions, Advantages, Working principle and Example code of Compiler and
Interpreter.
This presentation also helps to understand the key differences between
Compiler and Interpreter.
It helps to understand the topic COMPILER V/S INTERPRETER in a very easy
way and also helps to gain some knowledge regarding this topic.