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.
11,379 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,628 questions
0 comments No comments
{count} votes