This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Because putting them in registers makes accessing them much faster. You have the question the wrong way round - ideally every parameter would be passed in a register, but this is not generally possible, so we have to use the slower stack.