Statements 1 and 2 refer to two different types of program translators.
Statement 1: This type of translator converts a high-level source-code program into machine code one statement at a time, executing each statement as it translates it. It stops execution immediately if a runtime or syntax error is encountered.
Statement 2: This type of translator was used to convert the code in Example B to the code in Example C shown in Table 1.
| Example A | Example B | Example C |
|---|---|---|
x = 5 | MOV R0, #5 | 0010 0000 0000 0101 |
y = 12 | MOV R1, #12 | 0010 0001 0000 1100 |
z = x + y | ADD R2, R1, R0 | 0110 0010 0001 0000 |
State the type of program translator referred to in:
Statement 1
Statement 2