I have looked over the web for a tutorial and a sample patch of how
to build a recent Linux kernel with Intel C compiler.
I found the LinuxDNA project in: http://www.linuxdna.com/
This site has some patches for building a 2.6 kernel with ICC.
However, the 2.6 kernel is really outdated, and also the ICC versions
these patches refer to are quite outdated.
I also saw an Intel white paper of 8 pages, "Building Linux* Kernel
with Intel® C++ Compiler for Linux*",
This white paper provides a short partial example wrapper script.
It says there: "Building the Linux kernel with the Intel C++ Compiler (icc) is an ongoing project
I am looking for a patch against a recent Linux kernel with a recent Intel C compiler which
will provide us a way to build, boot and test a recent Linux Kernel compiled with ICC,
with an explanataion about the steps needed. I will appreciate if Intel supporters in
these forum will provide such info.
I am not aware of any patches provided or maintained by the product team per-se. That said, I've pinged the author of that paper (Feilong) to respond to you and let you know if there's any updated paper etc., or any pointers he may have on the steps needed accordingly, thanks.
icc 16.0 compiles more recent Linux kernels out-of-box. Source code patch is not needed. You may try kernel 3.18. Build command line is as simple as
make CC=icc HOSTCC=icc
A bit of the same question to an old thread - does anyone have any experience re-building FreeBSD using the Intel Compiler? I guess that would only be possible using the 2016 toolkit?
If anyone has any information on this topic it would be greatly appreciated!