Three different representations of a program designed to calibrate a digital temperature sensor are shown in Figure 1.
| Program Code P | Program Code Q | Program Code R |
|---|---|---|
reading = 45 | LDR R1, #45 | 1011 0001 0010 1101 |
offset = 5 | LDR R2, #5 | 1011 0010 0000 0101 |
adjusted = reading + offset | ADD R3, R1, R2 | 1100 0011 0001 0010 |
print(adjusted) | STR R3, [OUT] | 1111 0011 0000 0000 |
Consider the following two descriptions of program translators:
Statement A: This translator parses the entire high-level source code (such as Program Code P) in a single operation, converting it into a separate, standalone machine-code executable file that can run independently of the translator.
Statement B: This translator analyzes and executes the high-level source code step-by-step, instruction by instruction. No standalone binary executable is produced, meaning translation must occur every time the program is executed.
Identify the program translator described in:
Statement A
Statement B