Program Construction Flashcards

1
Q

Compiler

A

Converts/translates high level code into executable code.
Translates all the source code into target code before execution. An error report is often produced after the full program gas been translated. Errors in the program code may cause a computer to crash.

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

Interpreter

A

Converts/translates high level code into machine code.
Translates all the source code into target code one line at a time every time the code is executed. The interpreter stops when a line of code s reached that contains an error.

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

Assembler

A

Used to translate program written in a low-level assembly language into a machine code file so it can be used and executed by the computer.
The assembler does this by converting one-word assembly instructions into an opcode, e.g. converting AND to 0010. It also allocates memory to variables, often resulting in an operand.
Once assembled, the program file can be used again and again without re-assembly.

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