为什么 GCC 源代码中特定于目标的函数声明使用 K&R 风格而不是原型?
我一直在研究 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这样您就可以在使用非 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.