BASICS OF INTERPRETER AND COMPILER
There are two general methods by which a program can be executed:
(a) Compiler
(b) Interpreter
Compiler:
-- A Compiler reads the entire program & converts it into object code,which is a translation
of the programs source code into a form that the computer can execute directly.
-- Object code is also referred to as binary code or machine code.Once the program is compiled,
aline of source code is no longer meaningful in the execution of your program.
Interpreter:
-- An Interpreter reads the source code of your program one line at a time,performing the specific
instructions contained in that line.
-- In languages such as java, a program's source code is first converted into an intermediary form
that is then interpreted.
There are two general methods by which a program can be executed:
(a) Compiler
(b) Interpreter
Compiler:
-- A Compiler reads the entire program & converts it into object code,which is a translation
of the programs source code into a form that the computer can execute directly.
-- Object code is also referred to as binary code or machine code.Once the program is compiled,
aline of source code is no longer meaningful in the execution of your program.
Interpreter:
-- An Interpreter reads the source code of your program one line at a time,performing the specific
instructions contained in that line.
-- In languages such as java, a program's source code is first converted into an intermediary form
that is then interpreted.
0 comments:
Post a Comment