调用约定Calling Conventions

Visual C/C++ 编译器提供了用于调用内部函数和外部函数的几个不同的约定。The Visual C/C++ compiler provides several different conventions for calling internal and external functions. 了解这些不同的方法有助于调试程序以及将你的代码与汇编语言例程链接。Understanding these different approaches can help you debug your program and link your code with assembly-language routines.

本主题中的各个主题说明了调用约定之间的差异、如何传递参数以及函数如何返回值。The topics on this subject explain the differences between the calling conventions, how arguments are passed, and how values are returned by functions. 它们也讨论了裸函数调用以及使你能够写入自己的 prolog 和 epilog 代码的高级功能。They also discuss naked function calls, an advanced feature that enables you to write your own prolog and epilog code.

有关信息的 x64 调用约定的处理器,请参阅调用约定For information on calling conventions for x64 processors, see Calling Convention.

本节中的主题Topics in this section

请参阅See also

Microsoft 专用的修饰符Microsoft-Specific Modifiers