translators Flashcards

1
Q

what is a translator?

A

translators are code that translates source code into machine code which is binary ones and zeros

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

what is machine code?

A

binary notation
introduction on bytes of data
dependent on architecture
hard to program

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

what are the three types of translators

A

Assemblers
compilers
interpreter

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

what is an assembler

A

An assebler is designed to translate assembly code into machine code (cpu specific)
mnemonics-ADD et
assembley language of a way an assembler work

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

what is the assembler task order

A
    • Reseves storage for instructions & data
  1. Replaces mnemonic opcodes by machine codes
  2. Replace symbolic addresses by numeric addresses
  3. creates symbol table
  4. checks syntax
  5. Error diagnostics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a compiler

A

Translates High level source code into machine code which is stored in object file,
One or more object file are combined to form the final executable file(not specific to PC)

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

What is Lexical analysis

A

identify the command keywords and operators(IF)etc in source code

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

What is syntax analysis

A

checks program is written within the rules of the language

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

what is code generation and optimisation

A

produce the machine code to be as fast and memory efficient

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

what is the task order for a compiler

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