Question

For computers based on three-address instruction formats, each address field can be used to specify which of the following:

(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2015 answer key

Solution

Recall the structural definition of address fields in general-register and memory-register three-address instruction architectures.

A three-address instruction format specifies three operands, typically of the form:

textOpcodeA1,A2,A3quad(texte.g.,A1leftarrowA2textopA3)\\text{Opcode } A_1, A_2, A_3 \\quad (\\text{e.g., } A_1 \\leftarrow A_2 \\text{ op } A_3)
  • Each address field AiA_i can specify either a memory address/operand (S1S_1) or a general-purpose processor register (S2S_2).
  • An implied accumulator (S3S_3) is a fixed, implicit register used in one-address accumulator-based architectures, where no explicit address field is needed for it.

Therefore, each address field in a three-address instruction can specify either S1S_1 or S2S_2 (option A).

Final answer

A

Common trap

Including S3S_3 (implied accumulator), which is characteristic of one-address architectures rather than three-address architectures.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
18 of 65, printed as CS Q.8
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.