On Solaris, this sample code allows you to get the stack pointer.
在Solaris,下面这段示例代码让您可以获取堆栈指针。
The calling function must not care where the stack pointer is currently pointing.
调用的函数一定不能顾虑栈指针当前所指的位置。
This makes it easy for functions to know where their activation record is — they are simply defined in terms of the stack pointer.
这对函数了解自己的活动记录在什么地方提供了方便——它们可以使用堆栈指针的形式简单地进行定义。
应用推荐