Languages and Translators Flashcards
What is a low level language?
Code in the form that the computer can directly understand and can allow direct control over the CPU, e.g. binary, machine code.
What is a disadvantage of a low level language?
It is difficult to read.
It is harder to debug
Non-transferable - specific to machine
What is a high level language?
Code that is easier to read and understand, and needs a translator in order for the computer to understand it, e.g. Python.
What is a disadvantage of a high level language?
Slower as it needs to be translated for the computer to understand it.
What is an advantage of a high level language?
The code is transferable and can be used across different computers.
Easier to understand than a low level language as it is closer to the English language.
What is an advantage of a low level language?
Faster - as it does not need to be translated.
What is the purpose of a translator?
Converts a high level language into a low level language.
What is an interpreter?
A translator that reads line-by-line, and stops when it finds a syntax error.
What is the disadvantage of an interpreter?
Slower - after first execution - as it reads line by line.
Needs to be translated every time.
What’s an advantage of an interpreter?
Faster - first time only - as you don’t need to wait for an executable file.
Errors are identified as it run - so it can be fixed.
What is a compiler?
Creates an executable file and translates the code all at once.
What is the disadvantage of a compiler?
Errors are listed at the end once the whole program has been run, making it more difficult to resolve.
What is an advantage of a compiler?
You only need to use it once, and code is then hidden as it is an executable file.
Paper 1 link - which type of software is associated with a compiler?
Proprietary software as an executable file is created, so the actual code is hidden from the end user.
Paper 1 link - which type of software is associated with a interpreter?
Open source software - this means the code is visible to those who want to see it.