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

Please include ****mailto:mahadev_kc@yahoo.com ***** 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.

Introduction:

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.

Details:

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'
compiler.

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 @yahoo.com address at http://mail.yahoo.com

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

\
 
 \ /
  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