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

前端 未结 10 532
刺人心
刺人心 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:35

    There have been some efforts (and patches) to compile an early version of the 2.6 kernel with icc.

    0 讨论(0)
  • 2020-12-25 14:36

    EKOPath 4 Compiler, not now. but probably with some minor patches

    https://github.com/path64/repositories

    http://www.pathscale.com/ekopath-compiler-suite

    0 讨论(0)
  • 2020-12-25 14:41

    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.

    0 讨论(0)
  • 2020-12-25 14:41

    Yup. I've done this. See [cfe-dev] Clang builds a working Linux Kernel (Boots to RL5 with SMP, networking and X, self hosts).

    0 讨论(0)
提交回复
热议问题