Page 18 - Computer Class 07
P. 18
programming environment, for creating source codes. Fifth generation programming
allows people to interact with computers without needing any specialised knowledge.
People can talk to computers and the voice recognition systems can convert spoken
sounds into written words. Prolog and Mercury are the best known fifth generation
languages.
Translators
A translator takes a program written in source language as input and converts it into
a program in target language as output.
It also detects and reports the error-during translation.
There are three types of translators :
8 Assembler 8 Compiler 8 Interpreter
8 Assembler : It is a computer program which is used to translate program written
in assembly language into machine language. The translated program is called
an object program . Assembler checks each instruction for its correctness and
generates diagnostic messages, if there are mistakes in the program.
Assembly Language Translation Program Machine Language
Program (Assembler) Program
Working of an Assembler
8 Compiler : A compiler is a computer program that transforms code written in a
high-level programming language into the machine code. It is a program which
translates the human-readable code to a language a computer processor
understands (binary 1 and 0 bits). The computer processes the machine code to
perform the corresponding tasks.
A computer should comply with the syntax rule of that programming language in
which it is written. However, the compiler is only a program and cannot fix errors
found in that program. So, if you make a mistake, you need to make changes in
the syntax of your program. Otherwise, it will not compile.
High Level Machine
Compiler
Language Program Language
Working of a Compiler
Computer-7 18 Computer-1