Why is the function parameter XMVECTOR stored in a register, while XMVECTOR&is stored on the stack?

gan du 0 Reputation points
2023-11-25T08:16:52.6466667+00:00

Why is the function parameter XMVECTOR stored in a register, while XMVECTOR&is stored on the stack?

Is this implemented through a compiler or C++syntax?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,598 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,939 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 76,101 Reputation points Moderator
    2023-11-26T16:59:28.6766667+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.