Statements A and B refer to two different types of program translator.
| Program Code X | Program Code Y | Program Code Z |
|---|---|---|
val1 = 12 | MOV R1, #12 | 1101 0001 0000 1100 |
val2 = 7 | MOV R2, #7 | 1101 0010 0000 0111 |
total = val1 - val2 | SUB R3, R1, R2 | 1110 0011 0001 0010 |
print(total) | OUT R3 | 1111 0011 0000 0000 |
Statement A: This type of translator analyzes and executes source code line-by-line. No standalone binary executable file is saved, meaning the translation process must run every time the program is executed.
Statement B: This type of translator is used to convert the low-level assembly code in Program Code Y to the binary machine code in Program Code Z.
State the program translator referred to in Statement A and Statement B.