188.8.131.52 analyze advantages and disadvantages of compilers
184.108.40.206 analyze advantages and disadvantages of interpreters
Translators. Compiler vs Interpetator
How can we convert program code into bunary that a computer can understand it?
Translators translates high-level language program into a machine language program that the central processing unit (CPU) can understand. It also detects errors in the program.
Different Types of Translators
There are 3 different types of translators as follows:
We consider two types: Compiler and Interpreter.
A compiler is a translator used to convert high-level programming language to low-level programming language. It converts the whole program in one session and reports errors detected after the conversion. Compiler takes time to do its work as it translates high-level code to lower-level code all at once and then saves it to memory.
Just like a compiler, is a translator used to convert high-level programming language to low-level programming language. It converts the program line by line and reports errors detected at once, while doing the conversion. With this, it is easier to detect errors than in a compiler.
Comparison Compiler and Interpreter.
A look at how compilers and interpreters work, and how their differences affect memory, runtime speed, and computer workload.
Ex.2 (Author: Litvinova Olga - CS teacher of NIS Pavlodar)
|Просмотров: 362 | ||
|Всего комментариев: 0|