为什么 GCC 源代码中特定于目标的函数声明使用 K&R 风格而不是原型?

发布于 2024-12-20 11:41:58 字数 107 浏览 4 评论 0原文

我一直在研究 GCC 源代码,我注意到大多数(如果不是全部)特定于目标的源代码文件(例如 arm.c)都使用旧的 K&R 函数样式。

这有什么特别的原因吗?向后兼容?可移植性?

I've been studying the GCC source code and I noticed that most (if not all) target-specific source code files (like arm.c for example) use the old K&R function style.

Is there any particular reason for this? Backward compatibility? Portability?

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

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

发布评论

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

评论(1

柠檬心 2024-12-27 11:41:58

这样您就可以在使用非 GNU 且可能非常旧的编译器的系统上编译 gcc,以便在该系统上获得更好的编译器。

So that you can compile gcc on a system with non-GNU, and potentially really old, compiler, to just get a better compiler on this very system.

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