You are on page 1of 6

Yassou!

source code
What?
Java/c/python Machine language
01101

Compiler

Interpreter
Coder
interpreter

compiler
COMPILER INTERPRETER

A compiler is a program which


coverts the entire source code of interpreter takes a source program
1 a programming language into and runs it line by line, translating
executable machine code for a each line as it comes to it.
CPU.

Compiler takes large amount of


Interpreter takes less amount of time
time to analyze the entire source
to analyze the source code but the
2 code but the overall execution
overall execution time of the
time of the program is
program is slower.
comparatively faster.

Compiler generates the error


message only after scanning the
Its Debugging is easier as it
whole program, so debugging is
3 comparatively hard as the error
continues translating the program
until the error is met
can be present any where in the
program.
COMPILER INTERPRETER

Target program execute


The interpreter exists in the
4 independently and do not require
memory during interpretation.
the compiler in the memory.

For web environments, where


C and C++ are a most popular a load times are important. Due to
programming language which uses all the exhaustive analysis is done,
5 compilation model. compiler take relatively larger time
It is best suited for the Production to compile even small code that
Environment may not be run multiple times. In
such cases, interpreters are better.

Generates output program (in the Do not generate output program.


form of exe) which can be run So they evaluate the source
6
independently from the original program at every time during
program. execution.
COMPILER INTERPRETER

Compiled languages Interpreted Languages


7
C, C++,Objective C PHP, Java Script

Hybrid(compiled + interpreted)
Java , C# , VB. Net, python

Why java is both compiled and interpreted language.


A java program is first compiled into bytecode which JRE can understand.
ByteCode is then interpreted by the JVM making it as interpreted language

You might also like