Application Generation Flashcards
Compilers
Complier - Read and Compiles the whole code
Advantages:
- Saves Copy of code
- Hard to edit the code
- Becomes Executable File
- Quicker after First Load
Disadvantages:
- initially first run slow
- doesn’t spot errors immediately
Interpreter
Interpreter - Read and compiles line by line
Advantages:
- initially quick
- Spots errors immediately
Disadvantages:
- doesn’t save a copy
- easy to edit
- longer to run after first step
Intermediate Code
- Simplified code
- runs on any computer through a VM
- sections of the intermediate code can be generated from source code
Assembler & Cross Assembler
Assembler Coverts assembly code into machine code - Outputs code intended to run on the cpu the interpreter runs on
Cross Assembler- outputs code intended to run on a different CPU
COMPILATION
3 STAGES
First Stage:
•Lexical Analysis - Removes white spaces and comments & then adds remaining characters to a tokens then added to a token table
•Syntax Analysis - checks the structure of the program and whether it meets the program requirements