1.2.2 Applications Generation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Lexical Analysis

A
  1. Comments and white space removed
  2. Remaining code turned into a series of tokens
  3. Symbol table is created to keep track of variables and subroutines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a translator do?

A

Converts source code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Assembler?

A

A translator that converts assembly code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Interpreter?

A

A translator that converts high level source code into machine code line by line

-Good during coding and debugging

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Complier?

A
  • A translator that converts high level source code into machine code all in one go
  • Can take a long time
  • The final file can be run without source code or a translator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Syntax analysis

A
  1. Will produce an abstract syntax tree that will represent the program
  2. Check that the code that has been written uses a valid syntax
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Code Generation and Optimisation

A

1.Code generation is when the compiler converts the output of syntax analysis into object code

  1. Compilers can be tweaked to optimise either speed or memory
    - As it is often difficult to optimise both at the same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly