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

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

问题描述

我想知道是否有人设法使用gcc以外的编译器编译Linux内核。或者如果有人曾经尝试过?问题似乎很愚蠢或者是学术问题,但是当我想到以下答案时就产生了这个问题: C ++ int操作在mips体系结构上是原子性的吗?



似乎某些操作的原子性不仅取决于CPU架构,而且也在使用的编译器上。所以,我想知道在Linux世界中是否存在除gcc以外的其他编译器。

解决方案

Linux明确依赖一些 gcc扩展,所以其他编译器必须与所需的扩展兼容,这不是一个否,因为一个单独的编译器供应商/开发者跟踪gcc的扩展当然不是不可能的,只是一个数据点可能帮助您搜索。


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

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 explicitly depends on some gcc extensions, so any other compiler must be compatible with the needed extensions, in that case.

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天全站免登陆