Skip to content

(计算机)Call site

Chen Xiaojie edited this page Dec 18, 2022 · 1 revision

call site 可译为 " (函数) 调用现场", " (函数) 调用行数"。

这里的 site 英文解释为:"a place where something is, was, or will be built, or where something happened, is happening, or will happen" [^1],"a building site"翻译为 "建筑工地";"a historic site"译为"史跡"。但在日文字典中,"现场"更为符合词义。[^2]

以下为参考例子:[^3]

function sqr(x)
{
  return x * x;
}

function foo() {
  a = sqr(b); # 第一个调用现场
  c = sqr(b); # 第二个调用现场
}

参考 References

[^1]: site - Lexico字典 [^2]: site - weblio字典 [^3]: Call site - wiki

Clone this wiki locally