安装 gcc 是否需要 ISO C90 编译器
要安装 gcc,先决条件之一是用于引导 gcc 的 ISO C90 编译器,按照此链接 http:// /gcc.gnu.org/install/preconditions.html
我搜索过网络,但找不到任何这样的东西“ISO C90编译器”。该网站到底指的是什么?
for installing gcc, one of the prerequisites is ISO C90 compiler for bootstrapping gcc, as per this link http://gcc.gnu.org/install/prerequisites.html
I have searched web and could not find any such thing ' ISO C90 compiler' . what exactly the website is refering to?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这仅适用于从源代码构建 gcc 的情况。在大多数系统上,安装二进制发行版要容易得多,它不需要现有的 C 编译器(因为创建二进制发行版的人使用 C 编译器为您编译 gcc,或者从其他人那里获取二进制文件)。
C90是ISO C标准的1990年版本。由于 gcc 是用 C 实现的,因此您需要现有的 C 编译器来构建它。例如,这可以是 gcc 的早期版本。如果您告诉我们您正在使用什么操作系统,我们可以让您更好地了解在哪里可以找到可以安装的 C 编译器。
至于“ISO C90”要求,您可能找到的几乎所有 C 编译器都至少足以支持 ISO C90 来引导 gcc。短语“ISO C90 编译器”几乎等同于“C 编译器”。 (只有一些非常古老的 C 编译器将无法支持 C90。)
That applies only if you're building gcc from source. On most systems, it's much easier to install a binary distribution, which doesn't require an existing C compiler (because whoever created the binary distribution used a C compiler to compile gcc for you, or got the binaries from someone else who did).
C90 is the 1990 version of the ISO C standard. Since gcc is implemented in C, you need an existing C compiler to build it. This can be an earlier version of gcc, for example. If you tell us what operating system you're using, we can give you a better idea where to find a C compiler you can install.
As for the "ISO C90" requirement, just about any C compiler you're likely to find will support ISO C90 at least well enough to bootstrap gcc. The phrase "ISO C90 compiler" is very nearly equivalent to "C compiler". (Only some very old C compilers will fail to support C90.)
您操作系统上的编译器很可能已经与 C90 兼容,除非它非常旧(即您的操作系统是 1990 年之前的)。继续尝试构建 gcc。
查找操作系统提供商已经构建的 gcc 版本。
The compiler on you OS is most likely already C90 compliant unless is is very old (ie you OS is pre 1990). Just go ahead and try building gcc.
Look for a version of gcc already built by your OS provider.