ISA & Assembly
What is a characteristic of a load-store architecture such as RISC-V?
- AArithmetic instructions such as add read values directly from memory and write results back to memory
- BOnly load and store instructions access memory; arithmetic is done between registers
- CIt has no registers and computes by pushing all values onto a stack
Show answer and explanation
Answer: B. Only load and store instructions access memory; arithmetic is done between registers
In a load-store architecture, a memory value is first loaded into a register, arithmetic such as add or compare is done between registers, and results are written back to memory with a store if needed. Because arithmetic instructions never touch memory, instructions have a uniform shape and are easy to pipeline. This contrasts with designs like x86, where an arithmetic instruction such as "add eax, [mem]" can read memory.
- A. Arithmetic instructions operating on memory is a CISC trait, as in x86.
- B. Correct. Memory access is limited to loads and stores.
- C. That is a stack machine, not a load-store design.