Skip to content

Compilation and interpretation

Introduced
Handout Watch lesson
Vocabulary
English Meaning
compiler/kəmˈpaɪlə/Software that translates a program from a source language into another form, commonly machine or intermediate code.
interpreter/ɪnˈtɜːprɪtə/Software that executes a program by processing its instructions at runtime rather than requiring a separate complete native executable first.
lexical analysis/ˈleksɪkl əˈnæləsɪs/lexical analysis
tokens/ˈtəʊkənz/The meaningful units identified during lexical analysis, such as identifiers, keywords, operators and literals.
syntax analysis/ˈsɪntæks əˈnæləsɪs/syntax analysis
abstract syntax tree/ˈæbstrækt ˈsɪntæks triː/A tree representation of a program's grammatical structure that omits unnecessary surface details such as grouping punctuation.
syntax error/ˈsɪntæks ˈerə/A mistake that breaks the grammatical rules of a programming language.
semantic analysis/səˈmæntɪk əˈnæləsɪs/A compilation stage that checks whether a syntactically valid program obeys meaning-related rules, such as type and declaration requirements.
code generation/kəʊd ˌdʒenəˈreɪʃn/Producing target instructions or code from an intermediate or analysed representation of a program.
code optimisation/kəʊd ˌɒptɪmaɪˈzeɪʃn/Transforming code to improve properties such as speed or memory use while preserving its required behaviour.

Handout

Log in or create account

IGCSE, A-Level & AP