是否可以用 gcc 以外的东西编译 Linux 内核 [英] Is it possible to compile Linux kernel with something other than gcc

查看:18
本文介绍了是否可以用 gcc 以外的东西编译 Linux 内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人设法使用 gcc 以外的其他编译器编译 Linux 内核.或者如果有人尝试过?问题可能看起来很愚蠢或很学术,但是当我想到以下问题的答案时就出现了:mips 架构上的 C++ int 操作是否具有原子性

I wonder if someone managed to compile the Linux kernel with some other compiler than gcc. Or if someone have ever tried? Question may seem to be silly or academic, but it arose when I thought about answers to: Are C++ int operations atomic on the mips architecture

似乎有些操作的原子性不仅取决于cpu架构,还取决于使用的编译器.所以,我想知道在 Linux 世界中是否存在除 gcc 之外的其他编译器.

It seems that the atomicity of some operations depends not only on the cpu architecture, but also on used compiler. So, I wonder if in Linux world some compiler other than gcc even exists.

推荐答案

Linux 明确依赖于一些 gcc 扩展,因此在这种情况下,任何其他编译器都必须与所需的扩展兼容.

Linux explicitly depends on some gcc extensions, so any other compiler must be compatible with the needed extensions, in that case.

这不是一个不",因为单独的编译器供应商/开发者当然不是不可能跟踪 gcc 的扩展,只是一个可以帮助您搜索的数据点.

This is not a "no", since it's of course not impossible for a separate compiler vendor/developer to track gcc's extensions, just a data point that might help you search.

这篇关于是否可以用 gcc 以外的东西编译 Linux 内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆