Translation - Compilers
Computer Science: OCR GCSE, topic 2.5.3
Compilers
Translators are software that turn source code into executable binary. Compilers are a type of translator.

Compilers
- Compilers translate the whole of a program in one go.
- Compilers will provide a list of errors once it has attempted the compilation process:
- The list of errors makes debugging easier.
- C, C++, Visual Basic, and Swift are all compiled languages.

Pros of compilers
- Compilers produce an executable program:
- There is no need to repeat this process more than once per version of the software.
- Compilers hide the source code from the end user:
- Hiding the source code helps to protect developers' intellectual property.

Cons of compilers
- The compilation process can be very slow:
- A slow compilation process can slow down development if many small changes need to be made.
Test yourself on Translation - Compilers
Choose the correct statement about compilers in each pair.
Why does making lots of small changes slow down development for a compiled program?
Name the four compiled languages given as examples.
A programmer changes one line of code in a large program that uses a compiler. How much of the program's source code must be translated again?