A 2-address instruction involves two memory operands: one source operand and one destination operand. | In contrast, a 1-address instruction involves only one memory operand: the operand that is the source or destination of the instruction. |
2-address instructions typically require more registers than 1-address instructions. This is because 2-address instructions have both a source and destination operand, which may require additional registers to hold intermediate values or to perform calculations. | 1-address instructions requires less number of registers compare to 2-address instruction. |
2-address instruction are less compact compare to 1-address instruction. | 1-address instructions are generally more compact than 2-address instructions, as they have only one memory operand and fewer registers. |
2-address instructions are more flexible than 1-address instructions, as they allow for more complex calculations and expressions to be performed. This is because 2-address instructions have both a source and destination operand, which can be used to hold intermediate values or to perform calculations. | 1-address instruction are less flexible compare to 2-address instruction. |
2-address instruction are slower compare to 1-address instruction. | 1-address instructions are generally faster than 2-address instructions, as they require fewer memory accesses and fewer register operations. |
It has three fields , one field for opcode and two fields for address. | It has only two fields , one field for opcode and one field for address. |
It has long instruction length as compared to one-address. | While it has shorter instruction length. |
It can't completely eliminate three memory access. | It eliminates two memory access completely. |
It is slower accessing location inside processor than memory. | It is faster accessing location inside processor than memory. |
It generally needs two memory accesses. | It generally needs one memory accesses. |
There may be three memory accesses needed for an instruction. | There is a single memory access needed for an instruction. |