Statements 1 and 2 describe two different types of software translators used in computer systems.
Statement 1: This translator takes a program written in low-level assembly code (such as the instructions in Example B of Table 1) and translates it directly into the CPU's native binary machine code (such as Example C).
Statement 2: This translator processes an entire high-level source code file (such as the instructions in Example A) all at once, performing optimizations and syntax checking across the whole program, and outputs an independent, executable binary machine code file.
| Example A | Example B | Example C |
|---|---|---|
temp = 37 | MOV R1, #37 | 0010 0001 0010 0101 |
limit = 38 | MOV R2, #38 | 0010 0010 0010 0110 |
diff = limit - temp | SUB R3, R2, R1 | 0110 0011 0010 0001 |
State the type of program translator referred to in:
Statement 1
Statement 2