Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-17-2001, 10:16 AM   #1
LQ Newbie
Registered: Nov 2001
Posts: 5

Rep: Reputation: 0
Kernel Recompilation ...

Hi there,
I am just wondering whether its possible to re-compile the Kernel with the Intel's C/C++ Compiler. (free for non-commercial use).

The main motivation for this idea is the performance boost that Intel C/C++ Compiler can give. In my system , I have seen that Intel compiler can give a speedup of 1.5- 2.0 times than gcc could do.

What I am not sure is the Intel's support for most of the compiler flags (such as -Wall).

Have anybody tried this? Or could anyone please opinionate this??

Thanks in advance

Old 11-17-2001, 04:48 PM   #2
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,434

Rep: Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312Reputation: 3312
Are you talking about pgcc? If so this is what the docs that come with the kernel say.

You will need at least gcc 2.7.2 to compile the kernel. You currently have several options for gcc-derived compilers: gcc, various versions of egcs, the new gcc 2.95 and upcoming gcc 3.0, and experimental compilers like pgcc. For absolute stability, it is still recommended that gcc be used to compile your kernel. egcs 1.1.2 should also work. gcc 2.95 is known to have problems, and using pgcc for your kernel is just asking for trouble.

In addition, please pay attention to compiler optimization. Anything greater than -O2 may not be wise. Similarly, if you choose to use gcc 2.95 or derivatives, be sure not to use -fstrict-aliasing (which, depending on your version of gcc 2.95, may necessitate using -fno-strict-aliasing).
Old 11-17-2001, 09:25 PM   #3
LQ Newbie
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply. No, I am not talking about pgcc (not Portland Group's Compiler ANYWAY - which is also pgcc).

I am completely concerned about the Intels compiler (icc) for kernel compilation. From your excerpt , I undertstand that it may not be a wise idea to try this ... Hm..

Thanks again.
Old 11-18-2001, 04:12 PM   #4
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
the kernel needs certain options (or flags or some funny programming lingo) that its pretty much found only in GNU C compilers (such as egcs and gcc).

i doubt the intel compiler has these special features.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel recompilation ciopi Mandriva 2 11-06-2005 03:18 AM
kernel recompilation sachin_malik Linux - Enterprise 1 05-20-2005 01:57 PM
Recompilation of the kernel s_shenbaga Linux - Newbie 2 04-14-2005 03:06 PM
kernel recompilation najeeb Linux - Networking 1 08-31-2003 05:09 AM
Kernel Recompilation Thomas_Delrue Linux - General 1 08-30-2001 04:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration