LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-17-2001, 10:16 AM   #1
tjrajan
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

Rajan
 
Old 11-17-2001, 04:48 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,421

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

Quote:
You will need at least gcc 2.7.2 to compile the kernel. You currently have several options for gcc-derived compilers: gcc 2.7.2.3, 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 2.7.2.3 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
tjrajan
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Hm..
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
webtoe
Member
 
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.

Alex
 
  


Reply


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


All times are GMT -5. The time now is 01:05 AM.

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