A compiler translates a whole program in one go before it is run.
Name the type of code that a compiler produces.
Mark scheme
Award one mark for any of the following:
- Object code (1)
- Machine code (1)
- Executable code / an executable (1)
Allow object file.
Do not accept source code.
Do not accept high-level code.
Example answers and how they were marked
Object code.
Why: Object code is named as the code a compiler produces (1).
High-level code.
Why: Near-miss: this is the input to the compiler, not the code it produces; not accepted.
Source code.
Why: Names the programmer's input rather than the compiler's output; not accepted.