Flashcards
Sem título
Flashcards do conjunto (9)
- 1AssemblerAn assembler is a program which converts the code in a program to machine code so the machine can interpret it.
- 2InterpreterInterpreters convert the code line by line into the machine code and runs the code (executes).
- 3CompilerA compiler coverts all of the code in the program at once so the file can be used at another time.
- 4Lexical analysisWith Lexical analysis all of the comments and the unneeded spaces are removed. All of the keywords, constants and identifiers are replaced by something called tokens.
- 5Syntax analysisSyntax is the language rules of the code. Syntax analysis checks all of the tokens to see if they match the spelling and grammar expected, using standard language definitions. Each tokens will be parsed to determine if it uses the correct syntax for the programming language used. The the program detects any syntax error an error is thrown onto the screen.
- 6Semantic analysisVariables 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. All of the operations are checked to ensure that they are legal for the type of variable used.
- 7Runtime errorsRuntime errors are easy to fix if you are using an interpreter but they are difficult to fix if you are using a compiler. There is no code which is wrong so the code is easily compiled. The error will occur when the code attempts to run.
- 8Logic errorA logic error is the hardest error to be fixed. With a logic error there are no programming mistakes so the program will easily run. The output is not what the programmer wants.
- 9Linking errorAn error which can occur can happen at the compilation is called a linking error. This will happen is you have linked it to an external library or function, and the function you want is not available.
Informações
- Descrição
- FlashCards sobre Sem título, criado por Marcus Wilkinson em 16-06-2020.
- Criado por
- Marcus Wilkinson
- Visualizações
- 0
- Avaliação
Mais sobre Compilers, Interpreters and Assemblers