Bird
0
0

Which registers are typically considered callee-saved in ARM architecture?

easy📝 Conceptual Q2 of 15
ARM Architecture - Subroutines and Stack
Which registers are typically considered callee-saved in ARM architecture?
Ar0 to r3
Br4 to r11
Cr12 and r14
Dr13 and r15
Step-by-Step Solution
Solution:
  1. Step 1: Identify callee-saved registers in ARM

    Registers r4 to r11 are designated as callee-saved, meaning the called function must preserve them.
  2. Step 2: Differentiate from caller-saved registers

    Registers r0 to r3 are caller-saved, used for passing arguments and temporary data.
  3. Final Answer:

    r4 to r11 -> Option B
  4. Quick Check:

    Callee-saved registers = r4-r11 [OK]
Quick Trick: Remember: r4-r11 are callee-saved, r0-r3 caller-saved [OK]
Common Mistakes:
  • Confusing caller-saved with callee-saved registers
  • Including special registers like r13 (stack pointer)
  • Assuming r12 or r14 are callee-saved

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes