Is it possible to compile Linux kernel with something other than gcc

前端 未结 10 536
刺人心
刺人心 2020-12-25 14:17

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 a

10条回答
  •  一生所求
    2020-12-25 14:22

    Many, many, many years ago, it was actually possible to compile the kernel with g++, and as far as I remember part of the motivation was because C++ had stronger type check, not necessarily to have g++ to produce object files. But as Neil Butterworth have pointed out, Linus is not particular fond of C++, and there is zero chance that this ever will be possible again.

提交回复
热议问题