Translaters - Lakelands Computing

Title
Go to content
Translaters
Computers run programs in machine code (binary). Humans program in higher level languages we can understand (more on this here) . To run those high level programs , they need to be converted into machine code. That is what the translaters do.

There are 3 types of translaters:

1) Assemblers - these translate assembly language into machine code. Each CPU has its own assembler as they have their own machine code

2) Compilers - create machine code for the whole program

3) Interpeters - create machine code just for the instruction being run

Both compliers and intepreters turn high level languages into machine code but they do it in different ways:
Compilers
Interpreters
Translates all the source code (high level code) at the same timeTranslates the source code one instruction at a time
Creates one executable file (exe)Does not create an executable file
Returns a list of errors for the entire program, but only shows them once the compiling is finishedProgram has to be interpreted every time it is run
A compiled program runs quicklyStops as soon as it finds an error (does not  show any other errors)
Compiling can take a long timePrograms run more slowly as they are being translated as they run
Code only needs to be compiled once (unless there are errors to be fixed). The exe can then be used whenever the program needs to be run
All Text copyright Lakelands Academy & Mr T Purslow 2020.
All images copyright free / creative commons unless otherwise stated.
You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
Back to content