Passer au contenu

Semantic analysis and code generation

Introduit
Fiche de cours
Leçon vidéo pour ce sujet Ouvrir la page vidéo
5:58

Théorie de la calculabilité et compilateurs

This course asks what machines can decide, and how text becomes meaning. The first three units are theory: automata and regular languages, context-free…

Narration en anglais · sous-titres en anglais et en 中文 au choix

Dans cette leçon

Leçon vidéo
Vocabulaire
English Sens
symbol table/ˈsɪmbl ˈteɪbl/table des symboles
scope/skəʊp/The region of a program in which a particular name or binding can be accessed.
intermediate representation/ˌɪntəˈmiːdɪət ˌreprɪˈzenteɪʃn/représentation intermédiaire
three-address code/θriː əˈdres kəʊd/intermediate code in which each instruction has at most one operator and three addresses
lexer/ˈleksə/the compiler stage that groups characters into tokens
Constant folding/ˈkɒnstənt ˈfəʊldɪŋ/working out constant expressions at compile time
constant propagation/ˈkɒnstənt ˌprɒpəˈɡeɪʃn/replacing a variable with its known constant value
dead-code elimination/ded kəʊd ɪˌlɪmɪˈneɪʃn/removing code whose results are never used
common subexpressions/ˈkɒmən ˌsʌbɪkˈspreʃnz/identical expressions computed more than once, which the compiler can compute once
Register allocation/ˈredʒɪstə ˌæləˈkeɪʃn/choosing which values live in the processor's limited registers
spilled/spɪld/(of a value) kept in memory because no register is free for it
live/laɪv/of a variable at a program point: its current value may still be read later
Loop-invariant code motion/luːp ɪnˈveərɪənt kəʊd ˈməʊʃn/moving a calculation that gives the same result every time out of a loop
Suivant →

Fiche de cours

IGCSE, A-Level & AP