LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2009, 11:44 AM   #1
gmic
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Rep: Reputation: 0
Why can only gcc compile the kernel?


What do other C compilers lack in comparison to gcc to compile the kernel?
 
Old 02-03-2009, 11:46 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
gcc is the standard complier used on all distributions and has the most wide spread use. it was also I believe the first complier to be used to tradition has been carried on. At least that is my take on it.
 
Old 02-03-2009, 12:09 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by jstephens84 View Post
gcc is the standard complier used on all distributions and has the most wide spread use. it was also I believe the first complier to be used to tradition has been carried on. At least that is my take on it.
The first used on Unix systems. There are older compilers such as Fortran and Lisp.
cheers,
jdk
 
Old 02-03-2009, 12:11 PM   #4
gmic
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
jstephens84,
I understand the historical background of gcc. But as of now there are several other C compiler that seem to be good alternatives. Nevertheless people say that you can compile the kernel only with gcc. It seems as if there must be a technical reason for that. What does gcc have that the other compilers don't have?
 
Old 02-03-2009, 12:14 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
In principle, any C compiler will compile C code. I would expect the differences to be in how configuration files are set up.

For me, it would be more trouble than it is worth to figure out the details---YMMV.
 
Old 02-03-2009, 01:03 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
I think it also works with the intel compiler, but I believe the kernel may in some cases use gcc in strange ways, in which case gcc would the best to use.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile 2.2.26 Kernel with GCC 2.95.3: Errors bapigoo9 Programming 4 12-17-2008 11:47 PM
gcc not found error when trying to compile a new kernel sofocle Linux - Software 2 12-31-2006 01:16 PM
kernel compile errors with gcc 3.4.2 MarleyGPN Linux - Software 0 09-29-2004 08:03 PM
Can you compile the 2.6 kernel with GCC 3.1.1? 2verb Linux - Software 1 07-14-2004 03:48 PM
gcc-2.95 to compile kernel? shanenin Linux - Software 2 02-01-2004 11:45 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration