Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

_vectorcall and __regcall demystified

$
0
0

The motivation to have the new vectorcall calling convention is to make use of as many registers as possible to pass function arguments rather than pushing the function arguments to stack and reading them from stack inside the function. Targeting this calling convention on performance critical functions can increase the performance since now most of the interaction is happening with registers (as demonstrated below with a code sample). For more information on vectorcall calling convention, please refer to the following URLs:

  1. http://msdn.microsoft.com/en-us/library/dn375768.aspx
  2. http://blogs.msdn.com/b/vcblog/archive/2013/07/12/introducing-vector-calling-convention.aspx

Intel® C++ Compiler 14.0 Update 1 doesn’t support _vectorcall calling convention. Instead users can use __regcall calling convention which is a workaround for _vectorcall (demonstrated in this article).


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>