Language processors:
As we know that computer only understand machine language so the program written in high level
language is not directly understandable to computer. So we use language processor or translation software to convert high level language into machine language.
Source code or Source program:
The program written in high level language is called source code or source program while,
Object code or Object program:
the program written in low language is called object code or object program.
TYPES OF LANGUAGE PROCESSOR:
i) Compiler,
ii) Interpreter and
iii) Assembler:
Compiler:
A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.
When executing (running), the compiler first parses (or analyzes) all of the language statements syntactically one after the other and then, in one or more successive stages or "passes", builds the output code, making sure that statements that refer to other statements are referred to correctly in the final code. Traditionally, the output of the compilation has been called object code or sometimes an object module .
In C++ we use compiler.
Interpreter:
Computer language processor that translates a program line-by-line (statement-by-statement) and carries out the specified actions in sequence.
Assembler:
Assembler is a translation software or language processor which translates program written in assembly language into machine language.
language is not directly understandable to computer. So we use language processor or translation software to convert high level language into machine language.
Source code or Source program:
The program written in high level language is called source code or source program while,
Object code or Object program:
the program written in low language is called object code or object program.
TYPES OF LANGUAGE PROCESSOR:
i) Compiler,
ii) Interpreter and
iii) Assembler:
Compiler:
A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.
When executing (running), the compiler first parses (or analyzes) all of the language statements syntactically one after the other and then, in one or more successive stages or "passes", builds the output code, making sure that statements that refer to other statements are referred to correctly in the final code. Traditionally, the output of the compilation has been called object code or sometimes an object module .
In C++ we use compiler.
Interpreter:
Computer language processor that translates a program line-by-line (statement-by-statement) and carries out the specified actions in sequence.
Assembler:
Assembler is a translation software or language processor which translates program written in assembly language into machine language.
Comments
Post a Comment