Re: Need kernel patch to compile with Intel compiler

From: Chris Friesen
Date: Thu May 12 2005 - 10:55:31 EST


Richard B. Johnson wrote:

The kernel is designed to be compiled with the GNU 'C' compler
supplied with every distribution. It uses a lot of __asm__()
statements and other GNU-specific constructions.

Yep. And Intel added a bunch of them to their compiler so that they could build a kernel with it.

Why would you even attempt to convert the kernel sources to
be compiled with some other tools?

The Intel compiler is quite good at optimizing for their processors (and ironically for AMD ones as well). However, I think that a lot of the gains come from the vectorizer, which of course can't be used with kernel code.

Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/