Oh and as prplz mentioned, any self-respecting compiler nowadays will use only registers any way you decide to implement this little stub of a function. Yes yes, the question is very contrived too, but hey.
Aren't you using a third register though?
Are you're thinking that you can do that because it's not in RAM?
The way the question is formulated, you're limited by having a certain amount of memory. Any register use doesn't count against that at all.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oh and as prplz mentioned, any self-respecting compiler nowadays will use only registers any way you decide to implement this little stub of a function. Yes yes, the question is very contrived too, but hey.
Aren't you using a third register though?
Are you're thinking that you can do that because it's not in RAM?
The way the question is formulated, you're limited by having a certain amount of memory. Any register use doesn't count against that at all.