In Listing 6, the first command loads the function, the second command gets the head (or first) element, and the third command gets the head of the tail (or second element).
在清单6中,第一个命令装入函数,第二个得到头(或第一个)元素,第三个命令得到末尾的头(或第二个)元素。
For example, the print_report_i function described earlier compiled with tail-call optimization using -O2 on GCC 3.4 and therefore runs with a stack-size that is constant, not growing linearly.
例如,前面描述的 print_report_i函数在GCC 3.4 中使用-O2 进行尾部调用优化编译,因此运行时使用的栈的大小是固定的,而不是线性增长的。
This means that we have to manually rewrite the stack to fake a return address so that the tail-called function will return directly to our parent.
这意味着我们必须手工重新编写栈来仿造一个返回地址,以使得尾部调用的函数能直接返回到调用它的函数。
It seems that once control is passed to the tail-called function, nothing in the stack is useful anymore.
好像一旦控制权传递给了尾部调用的函数,栈中就再也没有有用的内容了。
After the function in tail position is called which of our local variables will be in use?
函数在尾部被调用之后,还需要使用哪个本地变量?
As you can see in order for the call to be a true tail-call, no other operation can be performed on the result of the tail-called function before it is passed back.
可见,要使调用成为真正的尾部调用,在尾部调用函数返回之前,对其结果不能执行任何其他操作。
The last call (the tail) simply invokes the function without any procedure call or stack maintenance overhead.
最后的调用(尾(tail))只是调用函数,没有任何过程调用或栈维护开销。
The activation record isn't needed anymore, so we are going to cut it out and redirect the tail-called function back to the function that called us.
再也不需要活动记录(activation record),所以我们将删掉它,并将尾部调用的函数重定向返回到调用我们的函数。
Function monitoring device is installed in the bucket on the machine's tail wheel, if the bucket elevator belt slipping or broken, the function of monitoring devices will allow bucket elevator close.
功能监测装置是装在斗提机的尾轮轴上,如果斗提机皮带打滑或断裂时,功能监测装置将使斗提机关闭。
Meanwhile, carry on the animal behavior test, including Open Field behavior, Hole-board test, Tail Flick Latency (TFL) test and Step-down test to discover the gene function on the whole animal level.
同时进行旷场行为测试、洞板试验、甩尾试验、步下法试验等动物行为学实验,旨在研究这些基因在整体动物水平上的功能表现。
It is because in later group tail of the Kirschner pin brought a touching pain postoperatively, so recovery of the function was generally slower than the former group.
张力带组因术后克氏针尾触痛。活动功能的恢复反而普遍慢于环扎组。
Export: Representative office's function is to contact between suppliers and export agent, to assure the quality of the goods and delivery time, and tail after the place of delivery.
出口:代表处的作用,是联系供货商和出口代理商。保证供货商的货源品质,确保交货时间,跟踪交货地点等。
Objective To observe the effect of the burn stress to the skin in tail of mice and to study the function of stress in psoriasis pathogenesis.
目的观察烧伤应激对小鼠鼠尾皮肤的影响,探索应激在银屑病发病中作用。
The main function of urban green road-side corridors are to reduce the automobile tail gas pollution and traffic noise.
由高斯烟流模式可推算出汽车尾气污染物最大浓度值的出现距离,进而确定绿色道路廊道的基本宽度。
Conclusion ve has protective effects on the injury to male reproductive function induced by tail-suspension in rats.
结论VE对尾部悬吊造成的大鼠雄性生殖损伤有防护作用。
In Chapter 2, we discuss the precise large deviations for non-random and random sums of negatively associated nonnegative random variables with common dominatedly varying tail distribution function.
在第二章,本文讨论了带有控制变化尾的,负相协随机变量的非随机和和随机和的精致大偏差。
In Chapter 2, we discuss the precise large deviations for non-random and random sums of negatively associated nonnegative random variables with common dominatedly varying tail distribution function.
在第二章,本文讨论了带有控制变化尾的,负相协随机变量的非随机和和随机和的精致大偏差。
应用推荐