everyone. I recently met a quiz question and I am not sure what it means. The question is as follows (no context):
We only need to save the stack pointer for a non-leaf procedure.
Just for reference, the "non-leaf procedure" means procedures that call other procedures.
Does it mean:
- The only thing we need to save in a non-leaf procedure is the stack pointer.
- The stack pointer needs to be saved only when it's in a non-leaf procedure.
Although common sense tells me 2 is more likely to be the intention of the question setter, I am not sure what this sentence really mean in terms of English syntax. I am not a native English speaker.