[lkml]   [2001]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWhy only Linux uses GCC to compile the source code. please help
Hi to all,

Please include **** ***** in the reply list
******as i am not a member of the list******.

After i am going through the some part of the linux code, i wrote the
following. Please review it and if you have any additions/modifications or
comments please let me know.

Your help is really needed.

Thanks for any help,

Mahadev K Cholachagudda

The document is as below.


This document describes about the features of gcc which are very much
necessary to compile the Linux and also about the features that an 'x'
compiler does not have if used to compile the Linux.


1. The GCC has an explicit inline declaration for functions. So this option
may enable the calling function to have the contents of some global
variables in particular register.

2. The GCC has an support for inline assembly with 'C' expression operands
which can be used in 'C' functions.

3. The GCC has a support for including the 'C' header files into the
assembly source files.

The problems if one uses 'x' compiler other than GCC.

1. He/she may not get the features of GCC listed above into the 'x'

2. The Linux kernel mainly uses GCC. If the Linux kernel is made to compile
using 'x' compiler other than GCC, then code updation will take time for 'x'
compiler if a newer version or patch of Linux released.

3. The Linux code may have some code which is purely based upon the data
types e.g. for one processor the unsigned long may be 32 bits or 16 bits.

Do You Yahoo!?
Get your free address at

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.077 / U:2.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site