Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 34
Easy

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.

Table 1

Example AExample BExample C
temp = 37MOV R1, #370010 0001 0010 0101
limit = 38MOV R2, #380010 0010 0010 0110
diff = limit - tempSUB R3, R2, R10110 0011 0010 0001

State the type of program translator referred to in:

a.

Statement 1

[1]
b.

Statement 2

[1]

Classification of programming languages and translators Questions

  1. GCSE
  2. /Computer Science
  3. /Classification of programming languages and translators