Criado por Ethan Long
mais de 4 anos atrás
|
||
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 |
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.