Statements 1 and 2 refer to two different types of program translators.
Statement 1: This type of program translator translates the entire high-level source code into a standalone machine code executable file (object code) before the program is run. It does not execute the code during translation and reports all syntax errors only after the entire file has been scanned.
Statement 2: This type of translator was used to convert the code in Example Q to the code in Example R shown in Table 1.
| Example P | Example Q | Example R |
|---|---|---|
temp = 45 | MOV R4, #45 | 0100 0100 0010 1101 |
target = 32 | MOV R5, #32 | 0100 0101 0010 0000 |
diff = temp - target | SUB R6, R4, R5 | 1000 0110 0100 0101 |
State the type of program translator referred to in:
Statement 1
Statement 2