Please enable JavaScript.
Coggle requires JavaScript to display documents.
Summary of High Level Languages and Translators (What are the advantages…
Summary of High Level Languages and Translators
What is a machine code?
Machine code is the language that the computer understands. In machine code, the instructions are made up of binary numbers
What is a high level language?
High level language will make use of English words and phrases. unlike machine code
What are the advantages and disadvantages of using high level language?
Advantages
Contain English words and phrases so they are easier to read and understand
Easier to spot errors and bugs because they are easier to understand
Portable – the program can run on more than one type of processor
Disadvantages
They need to be translated into machine code so are slower to run
What are the disadvantages and advantages of using the machine code?
Advantages
It runs quickly because it doesn't require to be translated into machine code. They can only run on the processor type they have been written on
Disadvantages
It's very difficult to understand for humans and it's difficult to spot a mistake
What is a translator and why is it required?
A translator is required to translate code between different languages
What is an Interrupter and how does it work?
An interpreter does not produce object code (a stand alone piece of code).
The interpreter translates and executes each line of the program in turn.
What are the advantages and disadvantages of using a interrupter
Disadvantages
A translation is not saved, the interpreter must be present to run code.
If code is repeated, as in a loop, the code is translated and run many times.
Individual runs are slower because of the previous two points.
Advantages
If errors are present, then they are highlighted immediately and are therefore easier to detect and fix.
Interpreters can run partial code or code under development.
What is a complier and how does it work?
A compiler translates high level language instructions, called source code, into machine code or object code.
It does this by going through the source one line at a time and translating it. It puts the translation into a file and then moves on.
When the whole program has been translated, the object code can be run. There is no need to translate the source code again, unless the program is changed
What are the advantages and disadvantages of using a complier?
Advantages
If no errors are found, then the source does not need to be translated again.
The translator program is no longer required once the program is translated.
Disadvantages
If any syntax errors are present then the program will not run.
The errors may be harder to correct, as the problems may not be identified until the code is translated.