Re: Why We Use C Than C++...
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 14:59:12 +0000 (UTC)
sonugeetha@xxxxxxxxx said:
> Hi, Please help me in this regard...
> All the kernel level programs are written in C... (i.e: Open Source
> LINUX)... Why are they not using C++... I personally feel that C++ is
> more easy to code than C... When i searched in our encyclopedia (i.e
> Google), i came up with several answers, telling "C is much faster than
> C++ and most kernal prgms uses only C" ... But why is it so...? Why
> they use C for these OS based programs.. Please Help me with detailed
> explanation...
Partly because C is faster (in places). Partly because it's simpler, so it's
easier to get right. But mostly, I think, because C came first. When the
kernel was first being written, C had already firmed up, whilst C++ was
still in a state of considerable flux. And, once it's /written/ in C, if a
reasonable job was made (which certainly seems to be the case), why on
earth would anyone bother to rewrite it?
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: Why We Use C Than C++...
- From: Walter Bright
- Re: Why We Use C Than C++...
- From: Dag-Erling Smørgrav
- Re: Why We Use C Than C++...
- References:
- Why We Use C Than C++...
- From: sonugeetha@xxxxxxxxx
- Why We Use C Than C++...
- Prev by Date: Re: Can any body tell me how to find duplicate lines in C
- Next by Date: Re: Structure
- Previous by thread: Re: Why We Use C Than C++...
- Next by thread: Re: Why We Use C Than C++...
- Index(es):
Relevant Pages
|