Revision Notes
OxfordAQA A-Level Computer Science (9645): Programming languages and translation software – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.6.3: low- and high-level languages, assembler, compiler, interpreter, bytecode and a self-test.
- Subject
- Computer Science
- Level
- AS LEVEL
- Topic
- Topic 6 – Computer systems
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to OxfordAQA A Level Computer Science (9645), 2024-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): OxfordAQA A Level Computer Science.
Syllabus points this page covers
9645 (AS Level)
- 3.6.3 Programming languages and translation software
This page covers 1 of the 3 subtopics in topic 6, Computer systems.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9645).
These notes condense sub-topic 3.6.3 Programming languages and translation software of OxfordAQA International AS and A-level Computer Science (9645), Version 1.1 (AS content in topic 3.6 Computer systems). For fuller explanations, see the programming languages and translation software study guide; then practise with the programming languages and translation software practice questions.
What the specification requires
| Ref | Requirement |
|---|---|
| 3.6.3.1 | Awareness of the development of languages and their classification as low-level or high-level; low-level languages are machine code and assembly language; describe them; advantages and disadvantages of low-level against high-level programming; explain imperative high-level language |
| 3.6.3.2 | Role of assembler, compiler and interpreter; differences between compilation and interpretation and situations for each; why some compilers produce an intermediate language such as bytecode and how it is used; difference between source code and object (executable) code |
Key terms
| Term | Meaning |
|---|---|
| Machine code | Binary instructions that the processor executes directly |
| Assembly language | Low-level language using mnemonics, usually one instruction per machine code instruction |
| High-level language | Language close to human language; one statement may be many machine instructions |
| Imperative language | One where the commands describe the process to follow to carry out a task |
| Source code | The program as the programmer wrote it |
| Object (executable) code | Translated machine code that can be run |
| Assembler | Translates assembly language into machine code |
| Compiler | Translates a whole program before it runs |
| Interpreter | Translates and executes a program statement by statement |
| Bytecode | An intermediate language that is more portable than machine code |
| Virtual machine | Software that interprets bytecode |
| JIT compiler | Converts bytecode to machine code at run time |
Low-level against high-level
| Feature | Low-level | High-level |
|---|---|---|
| Readability | Poor | Good |
| Development time | Long | Short |
| Hardware dependence | Specific to the processor | Largely portable |
| Hardware control | Direct | Limited |
| Maintenance | Hard | Easier |
| Translator needed | Assembler (assembly) or none (machine code) | Compiler or interpreter |
| Typical use | Drivers, embedded systems | General applications |
Assembly example (OxfordAQA instruction set)
LDR R0, 200
LDR R1, 201
SUB R2, R0, R1
STR R2, 202
HALT
If location 200 holds 14 and location 201 holds 9: R0 = 14, R1 = 9, R2 = 14 − 9 = 5, and 5 is stored in location 202. In a high-level language this is one statement, result = a - b.
Translators
| Translator | Input | Output |
|---|---|---|
| Assembler | Assembly language | Machine code |
| Compiler | Whole high-level program | Machine code or intermediate code |
| Interpreter | High-level program, one statement at a time | No object code file; executes as it translates |
Compiler against interpreter
| Compiler | Interpreter | |
|---|---|---|
| Speed of running | Fast | Slower |
| Errors | All reported before running | Found one at a time as lines run |
| Distribution | Give users object code only | Users need source code and an interpreter |
| Development | Recompile after each change | Quick to test changes |
| Best for | Finished, frequently-run software | Development, teaching, scripts |
Recomputed error example: a program of five statements has a syntax error in statement 4. A compiler reports it before running and executes 0 statements. An interpreter executes statements 1 to 3 and stops at statement 4, so it executes 3.
Bytecode
Some compilers output an intermediate language (bytecode).
Why:
- More portable than machine code.
- Security checks can be made before execution.
- Can use less memory than machine code.
How it runs:
- a virtual machine interprets it; or
- a JIT compiler converts it to machine code for the computer in use.
Source and object code
| Source | Object | |
|---|---|---|
| Written by | Programmer | Translator |
| Readable by humans | Yes | No |
| Run directly by the processor | No | Yes |
Exam traps
- Assembly language needs an assembler. Machine code does not need translation.
- A compiler translates; it does not run the program.
- An interpreter does not create a separate object code file.
- Bytecode is not machine code. It runs on a virtual machine or is converted by a JIT compiler.
- Say why for each advantage or disadvantage.
- Imperative means the commands describe the process to follow.
- Match the translator to the situation and give a reason.
Quick self-test
- Name the two low-level languages.
- What is the relationship between assembly instructions and machine code instructions?
- Give two advantages of a high-level language over assembly.
- Give one advantage of assembly language.
- What does an imperative language do?
- State the output of an assembler.
- Give two differences between a compiler and an interpreter.
- In the five-statement example, how many statements does an interpreter execute before the error in statement 4?
- What is bytecode?
- Give the three reasons for producing bytecode.
- How can bytecode be executed?
- Distinguish source code from object code.
Answers
- Machine code and assembly language.
- Usually one assembly instruction corresponds to one machine code instruction.
- Any two: easier to read and write, quicker to develop, portable, easier to maintain.
- Direct control over hardware, or small and fast programs.
- Its commands describe the process (the steps) to carry out a task.
- Machine code.
- For example: a compiler translates the whole program before running while an interpreter translates statement by statement; compiled code runs faster.
-
- An intermediate language produced by some compilers, more portable than machine code.
- More portable; security checks before execution; uses less memory.
- By a virtual machine that interprets it, or by a JIT compiler that converts it to machine code.
- Source is the programmer’s code; object code is the machine code produced by a translator.
- Programming languages and translation software study guide
- Programming languages and translation software practice questions
- Software revision notes
Official syllabus
OxfordAQA International AS and A-level Computer Science (9645) specification, Version 1.1, for International AS exams May/June 2025 onwards and International A-level exams May/June 2026 onwards: sub-topic 3.6.3 Programming languages and translation software.
Related resources
-
Study guides
OxfordAQA A-Level Computer Science (9645): Software
OxfordAQA 9645 sub-topic 3.6.2 in depth: system and application software, the operating system's role and four functions, utilities, libraries and translators.
Computer Science · OxfordAQA · AS Level
Read guide -
Practice questions
OxfordAQA A-Level Computer Science (9645): Software – Practice Questions
Ten original OxfordAQA 9645 questions on sub-topic 3.6.2 Software: system and application software, operating system functions, utilities and libraries.
Computer Science · OxfordAQA · AS Level
Try questions -
Revision notes
OxfordAQA A-Level Computer Science (9645): Software – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.6.2: system and application software, operating system functions, utilities, libraries and translators.
Computer Science · OxfordAQA · AS Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.