Language translators

Language translation is converting programming code into machine code which can be understood by the computer 

The 3 types of Language Translators:

1. Compiler

2. Interpreter

3. Assembler

Compiler:

Translates a program in a high language and low-level language program into a machine code (binary code which is understandable by the computer)

One high-level statement can be translated into several machine code instructions 

Once translated, it does not need to be translated again and again 

The compiled program can be run directly 

Interpreter:

Translates low level and high-level programs into a machine code 

Translates program line by line 

Needs translation every time the program is run 

The interpreted program cannot be run again and again 

Assembler:

Translates low-level language (made exclusively in assembly language) line by line 

An executable file of machine code is produced 

Assembled programs can be used without an assembler 

Assembly language is not very close to English 


High-level languages need to be compiled into machine code before they can be used by a computer 

Python is a high-level programming language



Notes taken in the class of Miss Shaista Shahab (2021)