Font size
Worksheets1.2.2 Applications Generation
Total questions: 28
Worksheet time: 14mins
Creates an executable file
Interpreter
Compiler
Assembler
Must be installed for the code to run on another machine
Interpreter
Compiler
Assembler
The correct order of the stages of compilation is:
Lexical Analysis, Syntax Analysis, Code Generation, Code Optimisation
Lexical Analysis, Syntax Analysis, Code Optimisation, Code Generation
Syntax Analysis, Lexical Analysis, Code Optimisation, Code Generation
Syntax Analysis, Lexical Analysis, Code Generation, Code Optimisation
Removing whitespace is in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
Token creation is in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
Symbol table is created in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
The code is checked against the rules in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
The syntax tree is created in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
The user will first be alerted to errors found in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
The syntax tree is converted into object code in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
Redundant code is removed in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
The code is improved to run as fast as possible in:
Lexical Analysis
Syntax Analysis
Code Generation
Code Optimisation
At the linking stage...
Code from the linked library is copied into the program
Code from the linked library is removed from the program
Give advantages of using closed source code
Thorough, regular and well-tested updates
Expert support and user manuals from company
High levels of security as it is developed in a professional, controlled environment
Distributed with the source code
Can be modified and sold on
Identify advantages of using interpreted code over compiled code
Is platform independent
Runs instantly without time waiting for compilation
Faster to execute
Does not require compiler to run
Converts low level code to machine code
Interpreter
Compiler
Assembler
