4.2

Topic 4

Types of programming language, translators and integrated development environments (IDEs)

  • IGCSE Computer science 0478
  • 3 min read
  • Syllabus 2026, 2027 and 2028

Objectives

  1. 1

    Explain what is meant by a high-level language and a low-level language, including the advantages and disadvantages of each

  2. 2

    Understand that assembly language is a form of low-level language that uses mnemonics, and that an assembler is needed to translate an assembly language program into machine code

  3. 3

    Describe the operation of a compiler and an interpreter, including how high-level language is translated by each and how errors are reported

  4. 4

    Explain the advantages and disadvantages of a compiler and an interpreter

  5. 5

    Explain the role of an IDE in writing program code and the common functions IDEs provide

Cambridge IGCSE Computer Science 0478 syllabus 2026-2028, 4.2 Types of programming language, translators and integrated development environments (IDEs) (copied for internal use as permitted by Cambridge)

Detailed · Deep study

1High-level and low-level languages

high-level language

A programming language that uses English-like words and is independent of the computer hardware, e.g. Python, Java.

low-level language

A programming language that relates closely to the instruction set of a particular CPU: machine code or assembly language.

High-levelLow-level
ease of reading and writingeasier: English-like statements; one statement does many machine operationshard to read and write; many instructions needed
ease of debuggingeasier to find and correct errorsharder to debug
machine independenceportable – can run on different types of computer (after translation)written for one type of CPU
direct manipulation of hardwarecannot usually manipulate hardware directlycan control registers and memory directly; programs can be faster and use less memory
translationneeds a compiler or interpreterassembly needs an assembler; machine code needs none

2Assembly language

Assembly language is a low-level language that uses mnemonics – short codes such as LDA (load), ADD, STO (store) and JMP (jump) – in place of binary machine code. Each mnemonic usually matches one machine code instruction. An assembler is needed to translate an assembly language program into machine code.

LDA 20    ; load the value at address 20 into the accumulator
ADD 21    ; add the value at address 21
STO 22    ; store the result at address 22
Assembly language: each mnemonic stands for one machine code instruction.

3Compilers and interpreters

Fig. 1How each translates and reports errors.
CompilerInterpreter
translationtranslates the whole code at once, before executing ittranslates and executes the code line by line
outputproduces an executable file (machine code)no executable file
errorsprovides an error report for the whole code if errors are detectedstops execution when an error is found
advantagesexecutable runs fast and can be run again without translating; source code is not given away; no translator needed by the usereasy debugging: errors found one at a time, and code can be tested in parts; runs straight away
disadvantagesharder to debug: all errors reported at the end; must recompile after every changeslower to run: translated every time; interpreter needed to run the program; source code must be shared

An interpreter is mostly used while a program is being developed, because errors can be found and fixed quickly. A compiler is used to translate the final program for distribution.

4Integrated development environments (IDEs)

IDE

A piece of software that provides the tools a programmer needs to write, translate, test and debug program code.

FunctionWhat it does
code editorlets the programmer type and edit code, often with colour-coded keywords
run-time environmentlets the program be run and tested within the IDE, showing output
translatora built-in compiler and/or interpreter
error diagnosticshighlights errors and explains them, e.g. line number and type of error
auto-completionsuggests the rest of a keyword or identifier as it is typed
auto-correctionautomatically corrects common mistakes, e.g. spelling of keywords
prettyprintformats code with indentation and colour so it is easier to read

5Exam focus

Key words: high-level; low-level; machine code; assembly language; mnemonic; assembler; compiler; interpreter; executable; IDE; error diagnostics; prettyprint.

Quick self-check

Answer in your head first, then reveal.

  1. Any two: easier to read/write; easier to debug; machine independent (2).

  2. An assembler (1).

  3. Translates the whole program at once (1); produces an executable file (1); gives an error report for the whole program (1).

  4. Stops at the error / errors are found one at a time (1); so they can be corrected and the code tested in sections (1).

  5. Any three: code editor; run-time environment; translator; error diagnostics; auto-completion; auto-correction; prettyprint (3).

Finished this subtopic? Track it on your subject page.