- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
来自 https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/Optimize-Options.html#index-fsemantic-interposition
-fsemantic-interposition
Some object formats, like ELF, allow interposing of symbols by the dynamic linker. This means that for symbols exported from the DSO, the compiler cannot perform interprocedural propagation, inlining and other optimizations in anticipation that the function or variable in question may change. While this feature is useful, for example, to rewrite memory allocation functions by a debugging implementation, it is expensive in the terms of code quality. With -fno-semantic-interposition the compiler assumes that if interposition happens for functions the overwriting function will have precisely the same semantics (and side effects). Similarly if interposition happens for variables, the constructor of the variable will be the same. The flag has no effect for functions explicitly declared inline (where it is never allowed for interposition to change semantics) and for symbols explicitly declared weak.
protected
Protected visibility is like default visibility except that it indicates that references within the defining module bind to the definition in that module. That is, the declared entity cannot be overridden by another module.
这听起来完全一样。
除了 -fno-semantic-interposition
将标记为 default
的任何函数明确更改为 之外,是否有任何真正的区别 protected
?
最佳答案
这个问题很难回答,因为目前 -fsemantic-interposition
并没有真正起作用。在这个例子中,
int a;
int
f1 (int a)
{
return a;
}
int
f2 (void)
{
return f1 (a) - a;
}
f2
的主体被有效地优化为 return 0;
即使使用 -O2 -fsemantic-interposition
(以及 -O2 -fno-semantic-interposition
,以防文档中选项的意义相反)。 I filed a bug.
可能的意图是 -fsemantic-interposition
会禁用此类优化,因此您最终会调用 f1
和结果的显式计算。
ELF 符号可见性与此无关,主要是因为它仅适用于动态链接。链接编辑器仍然可以在静态链接时插入符号(例如,使用 -z muldefs
选项),因此编译器应该真正提供一种方法来启用插入而不改变符号属性(所以除了 __attribute__ ((weak))
之外的其他东西)。
关于c++ - `-fno-semantic-interposition` 与 `-fvisibility=protected` 究竟有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51227608/
theming上有详细说明在传统的语义 UI 上,但语义 UI React 站点中缺少等效的部分。这是否意味着它不支持主题化,或者您可以使用传统语义 UI 的主题化方法吗? 我知道 React 世界中
我正在阅读一篇非常愚蠢的论文,它一直在谈论乔托如何定义“形式语义”。 Giotto has a formal semantics that specifies the meaning of mode
我是语义 UI 新手,我喜欢这个框架。他们有大量有用的文档,但更令人困惑的是。 响应式可见性如何工作? 容器有仅移动平板电脑仅小型显示器仅大型显示器...以及一些代码,我发现有仅计算机,仅设备 ?有什
我正在尝试查询通过模板变量指定的页面列表,但我无法很好地了解 Semantic Mediawiki,甚至无法确定这是否可行,更不用说一个好主意了。 我有一组具有语义属性的页面。然后我有一个模板,它有一
是否可以在 SMW 页面的两个属性(均具有允许值的列表)之间定义一对多关系? 如果是,怎么办? 最佳答案 属性包含单个值;这不是限制本身,它是一个 RDF triple essentially wit
我有一个类似于以下的文档类型: abc true abc 以下文档在语义上与前面的文档相同: true abc
是否可以创建类似于 Masonry 的级联网格布局?或 Bootstrap v4 card columns使用语义用户界面? 最佳答案 根据 this issue ,好像不直接支持,但是可以通过col
如何将 Semantic-UI 添加到 Phoenix? Semantic-UI 安装在一个文件夹中并使用 NPM 进行更新,实际的 CSS 和 Javascript 文件是使用 GULP 构建的。完
是否可以在没有触发器的情况下使用模态?我将通过状态打开和关闭它。 例如,我想在输入字段(带有文件名)上使用 onClick 以使用文件选择器打开模态,然后在输入字段中编辑所选文件的名称。所有这些都在一
这句话可以在 C11 的最终草案 N1570(5.1.2.3-8) 中找到: More stringent correspondences between abstract and actual se
我正在查看与安全相关的高级 Ruby on Rails 教程,它谈到 422 HTTP 响应是“客户端提交的请求格式正确但语义无效”。我还看到后一部分呈现为“语义错误”或“语义错误”。 在给出的示例中
什么是“值语义”,什么是“隐式指针语义”? 最佳答案 Java 对对象类型使用隐式指针语义,对基元使用值语义。 值语义意味着您直接处理值并传递拷贝。这里的重点是,当您拥有值(value)时,您可以相信
我正在按照官方文档中的示例创建一个简单的弹出窗口:https://react.semantic-ui.com/modules/popup 所以这是我当前的代码,效果很好: export default
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 4 年前。
我正在尝试使用试剂/重新框架和语义用户界面在 Clojurescript 中实现搜索。 Semantic-ui 使用渲染器来提供建议。此渲染器默认为图像、价格、标题、描述。因为我想对地理编码提出建议,
我正在尝试在使用 Semantic-UI-React 时自定义主题,有关于如何在 Semantic-UI 中自定义主题的详细说明,例如我们可以覆盖变量以更改其样式。 但是我没有找到用Semantic-
语义 UI react Checkbox可以这样使用: import React from 'react' import { Checkbox } from 'semantic-ui-react' c
我想使用语义-ui 创建自定义主题,但他们还没有对 Aurelia 的官方支持,并且在 npm install语义-ui --save 后弹出很多不需要的错误 。我想要一个明确的答案和 aurelia
我正在尝试使用本教程使用 npm 和 gulp 安装 semantic-ui:http://www.semantic-ui.com/introduction/getting-started.html
Go 中的Value semantics 和Pointer semantics 是什么意思?在 this course ,作者在解释数组和 slice 的内部结构时多次提到上述术语,我无法完全理解。
我是一名优秀的程序员,十分优秀!