在Java中,“调用上下文”的含义是什么。 (和其他一些术语)? [英] In Java what is meant by "calling context" (and some other terms)?

查看:518
本文介绍了在Java中,“调用上下文”的含义是什么。 (和其他一些术语)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解Java字节码/源代码的静态分析。

I am trying to understand static analysis of Java bytecode/source-code.

这些条款经常出现,我无法在互联网上找到令人满意的定义:

These terms frequently come up for which I am not able to find satisfactory definitions on the Internet:


  1. 上下文(中)敏感分析

  2. 调用上下文

  3. 有效呼叫网站

  4. 分数分析

  1. context (in)sensitive analysis
  2. calling context
  3. active call site
  4. points-to analysis

任何人都可以用外行术语详细说明上述术语在Java语境中的含义。
在Google上搜索上下文编程会带来关于上下文敏感语法,语言理论等的内容,但不是我需要的定义(除非它们的含义相同)。

Can anyone please elaborate in layman terms what the above terms mean in the context of Java. A search of "context" "programming" on Google brings up stuff about context sensitive grammar, language theory, etc., but not the definitions I need (unless they mean the same thing).

推荐答案


  • 调用上下文:分析代码时某个位置,即时(假定)来电者的代码,或者更常见的是(假定的)来电者的代码。

    • calling context: when analyzing code at a certain location, the code of the immediate (postulated) caller or a more generally, the set of (postulated) callers leading to this.

      有效呼叫网站:呼叫上下文的变体,主要针对直接呼叫者。

      active call site: a variation of the "calling context" focused on the immediate caller.

      上下文敏感分析:分析代码位置的代码属性,该代码属性考虑了特定的调用上下文。进行此类分析的原因是属性通常更加详细和精确。

      context sensitive analysis: An analysis of the code properties at a code location that takes into account a specific calling context. The reason for doing such an analysis is that the properties are often more detailed and precise.

      上下文敏感性分析:分析代码位置,该代码位置考虑所有可能的调用上下文。这样做是因为它比上下文敏感的分析更容易实现;它的缺点是答案往往不那么准确。

      context in-sensitive analysis: An analysis of a code location, that takes in to account all the possible calling contexts. This is done because it is easier to implement than a context-sensitive analysis; its disadvantage is the answers are often not as precise.

      指向分析:确定每个指针赋值的分析(从而访问和更新该指针可以选择的程序中的一组实体。通常,感兴趣的实体由代码中的一组分配点表示,例如,每个地方可能在堆上或在本地块中发生任何实体的分配。

      points-to analysis: An analysis that determines for each pointer assignment (and thereby accesses and updates through) the set of entities in the program to which that pointer may select. Often the entities of interest are represented by the set of allocation points in the code, e.g., each place an allocation of any entity might occur, either on the heap or in a locals block.

      这篇关于在Java中,“调用上下文”的含义是什么。 (和其他一些术语)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆