函数调用约定,是指当一个函数被调用时,函数的参数会被传递给被调用的函数和返回值会被返回给调用函数。函数的调用约定就是描述参数是怎么传递和由谁平衡堆栈的,当然还有返回值。
本期文章重点放在基本的语法和SPE汇编语言及ABI (application binary interface或平台的函数调用约定)的用法上。
This article focuses on the basic syntax and usage of SPE assembly language, and the ABI (the application binary interface, or the function calling conventions of the platform).
您可以以任何形式调用此函数,但是必须遵守sprout Core的命名约定。
You can call this function anything you want, but we have chosen to follow SproutCore's naming conventions.
类中的函数定义通常包括了一个特殊形式的参数列表,用于方法调用约定——同样我们在后面讨论这些。
The function definitions inside a class normally have a peculiar form of argument list, dictated by the calling conventions for methods — again, this is explained later.
应用推荐