Program construction

Descrição

An assembler is a program, which converts the low level assembly programming language into machine code. An interpreter is a program, which converts code one line at a time, into machine code and executes it. A compiler is a program that converts high level programs into machine code for execution at a later time (the entire program is converted, not one line at a time as with an interpreter).
Ethan Long
FlashCards por Ethan Long, atualizado more than 1 year ago
Ethan Long
Criado por Ethan Long mais de 4 anos atrás
1
0

Resumo de Recurso

Questão Responda
Lexical analysis *Comments and unneeded spaces are removed *keyword ,constants and identifiers are replaced by "tokens".
Symbol table construction *A symbol table is created which holds the addresses of variables ,labels and subroutines
Syntax analysis *Tokens are checked to see if they match the spelling and grammar expected, using standard language definitions. This is done by parsing each token to determine if it uses the correct syntax for the programming language *If syntax errors are found, error messages are produced.
Semantic analysis *Variables are checked to ensure that they have been properly declared and used. *Variables are checked to ensure that they are of the correct data type, e.g. real values are not being assigned to integers. *Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Code generation Machine code is generated
Code optimisation Code optimisation may be employed to make it more efficient/faster/less resource intensive
Programming errors such as Syntax Runtime/execution Logical Linking Rounding Truncation

Semelhante

A level Computing Quiz
Zacchaeus Snape
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Computing
Kwame Oteng-Adusei
Pack of playing cards answer
Karl Taylor
Code Challenge Flow Chart
Charlotte Hilton
Computing Hardware - CPU and Memory
ollietablet123
Computer Systems
lisawinkler10
Computer science quiz
Ryan Barton
Input, output and storage devices
Mr A Esch