it related to System Programming Subject.it describe the what is Interpreter?,Comparison between Interpreters and Compilers,Benefits Of Interpreter and Basic of JVM.
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Interpreter
1. INTERPRETER
A. D. PATEL INSTITUTE OF TECHNOLOGY
SYSTEM PROGRAMMING(2150708) : A.Y. 2018-19
DEPARTMENT OF INFORMATION TECHNOLOGY
A D PATEL INSTITUTE OF TECHNOLOGY (ADIT)
NEW VALLABH VIDYANAGAR, ANAND, GUJARAT
GUIDED BY:
PROF.KEYUR PATEL
(DEPT OF IT, ADIT)
PREPARED BY:
JADEJA RAHULSINH (160010116018)
KATHE KUNAL (160010116021)
SHAH DHRUV (160010116053)
B.E. (IT) SEM - 5
1
2. 2
Outline
What Is Interpreter ?
Comparison Interpreters and Compilers.
Benefits Of Interpreter.
Introduction Of JVM.
3. 3
What Is Interpreter ?
An interpreter is system software that translates a given High-Level Language (HLL)
program into a low-level one, but it differs from compilers.
Interpretation is a real-time activity where an interpreter takes the program, one
statement at a time, and translates each line before executing it.
Source Program
Data
Direct Execution
Interpreter
4. 4
Comparison Interpreters and Compilers
Interpreter Compiler
Translates program one statement at a
time.
Scans the entire program and translates it as a
whole into machine code.
It takes less amount of time to analyze the
source code but the overall execution time
is slower.
It takes large amount of time to analyze the
source code but the overall execution time
is comparatively faster.
No intermediate object code is generated,
hence are memory efficient.
Generates intermediate object code which
further requires linking, hence requires
more memory.
Sr_No.
1)
2)
3)
5. Benefits Of Interpreter
The distinguished benefits of interpretation are as follows:
1. Executes the source code directly. It translates the source code into some efficient
Intermediate Code (IC) and immediately executes it. The process of execution can be
performed in a single stage without the need of a compilation stage.
2. Handles certain language features that cannot be compiled.
3. Ensures portability since it does not produce machine language program.
4. Suited for development environment where a program is modified frequently. This means
alteration of code can be performed dynamically.
5. Suited for debugging of the code and facilitates interactive code development.
5
6. 6
Java virtual machine
As the name indicates, JVM is not a real hardware machine but a software layer which resembles an
hardware platform.
JVM converts Java byte code into machine language and executes it.
The byte code can be executed on any platform where there exist JVM.
The use of the same byte code for all JVM’s on all platforms allows Java to be described as a "write once,
run anywhere" programming language.
Thus, the JVM is a crucial component of the Java platform.