有人请告诉我 如何更改c中的默认调用约定?
some one please tell me how to change the default calling convention in c?
调用约定不是由语言指定的。它们是编译器的扩展。
也就是说,通常您会执行以下操作:
void __fastcall my_func(void);
但这完全取决于您的编译器和平台。
Calling conventions are not specified by the language. They are extensions to your compiler.
That said, commonly you do something like:
But this is completely dependent on your compiler and platform.
这很大程度上取决于您的编译器、工具链和平台。您需要更具体地了解您的环境以及您希望更改的环境。
This largely depends on your compiler, toolchain, and platform. You will need to be more specific on what your environment is, and what you wish to change to.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
调用约定不是由语言指定的。它们是编译器的扩展。
也就是说,通常您会执行以下操作:
但这完全取决于您的编译器和平台。
Calling conventions are not specified by the language. They are extensions to your compiler.
That said, commonly you do something like:
But this is completely dependent on your compiler and platform.
这很大程度上取决于您的编译器、工具链和平台。您需要更具体地了解您的环境以及您希望更改的环境。
This largely depends on your compiler, toolchain, and platform. You will need to be more specific on what your environment is, and what you wish to change to.