Application Generation Flashcards
What is a Translator?
A Translator is a program that converts one computer language into another.
What does an Assembler do?
It converts assembly language into machine code
Why are Assemblers used? (Benefits)
- They are often used when programs need to interact very closely with hardware.
- It is highly efficient
When you want to run assembly language on a different type of CPU what do you use?
A cross-assembler
What is a compiler?
A compiler translates high level code into machine code storing the result in an object file.
What are the three stages that a compiler must go through?
- Lexical analysis
- Syntax analysis
- Code generation
(LSC)
What is Lexical Analysis? (COMPILER)
Identifies command keywords
What is Syntax Analysis? (COMPILER)
Checks that the program is written within the rules of the language
What is Code Generation?
COMPILER
Produces the machine code
What is an Interpreter?
Translates source code line by line into machine code and is executed immediately
What can Interpreters also convert source code into?
‘Byte Codes’
What is more prone to computer crashing? Compiler or Interpreter
Compiler
What is faster to run? Compiler or Interpreter
Compiler
What is easier to reverse engineer? Compiler or Interpreter
Interpreter
What are easier to debug? Compiler or Interpreter
Interpreter