以“tree”开头的 gcc 标志有什么特别之处?

发布于 2024-08-05 21:04:52 字数 303 浏览 7 评论 0原文

有很多以 tree< 开头的 优化设置 /代码>。有些是:

-ftree-builtin-call-dce
-ftree-ccp
-ftree-ch
-ftree-copyrename
-ftree-dce
-ftree-dominator-opts
-ftree-dse
-ftree-ter

这些标志有什么特别之处?

There are a lot of optimization settings starting with tree. Some are:

-ftree-builtin-call-dce
-ftree-ccp
-ftree-ch
-ftree-copyrename
-ftree-dce
-ftree-dominator-opts
-ftree-dse
-ftree-ter

What's special about those flags?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人事已非 2024-08-12 21:04:52

它们都与源代码的树表示一起使用。

不确定 GCC 到底是如何做到的,但一般来说 编译器 会解析你的代码并将其转换为抽象语法树解析树或类似结构。这些优化适用于该树。稍后,该树将用于生成机器代码。

They all work with the tree representation of your source code.

Not sure exactly how GCC does it, but in general a compiler will parse your code and turn it into an abstract syntax tree, parse tree or similar structure. These optimizations work on that tree. Later, the tree will be used to generate the machine code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文