Binary number translators are most commonly associated with Computer.To quickly refresh our memory on the subject - what we write our programs in is a High Level Language, whereas what a computer can understand is a Machine Language. We thus need to convert the High Level (or Assembly language) Code to a computer readable form. This is where a Translator fits in.
Binary Number Translators |
Translators are programs that convert code written in assembly language or hll to machine language and reassemble the output back to assembly or high level language. Translators are of three types:
Assembler: translate programs written in assembly language to machine language and accordingly, the output back to assembly language. They convert mnemonics into binary instruction code and hexadecimal numbers into binary code before the data is processed
For High Level Language program the translators are either of these two types - Compilers and Interpreters. The compiler or interpreter converts the instructions written in High Level Language into binary code that can be stored or processed by a computer.
Compilers: take the entire user program as a source program and translates it into machine coded version called object program and gives the list of errors at the end
Interpreters: it takes one instruction at a time, translates it and checks for errors and does not proceed to the next instruction unless the one with errors has been rectified
Assembler: translate programs written in assembly language to machine language and accordingly, the output back to assembly language. They convert mnemonics into binary instruction code and hexadecimal numbers into binary code before the data is processed
For High Level Language program the translators are either of these two types - Compilers and Interpreters. The compiler or interpreter converts the instructions written in High Level Language into binary code that can be stored or processed by a computer.
Compilers: take the entire user program as a source program and translates it into machine coded version called object program and gives the list of errors at the end
Interpreters: it takes one instruction at a time, translates it and checks for errors and does not proceed to the next instruction unless the one with errors has been rectified
As an example, the C language has a "compiler" whereas BASIC language has an interpreter.
0 comments:
Post a Comment