Re: Why We Use C Than C++...



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)
.



Relevant Pages

  • Re: Why We Use C Than C++...
    ... Please help me in this regard... ... > All the kernel level programs are written in C... ... (i.e: Open Source ... object orient design is something that comes naturally to many programmers ...
    (comp.lang.c)
  • Re: Why We Use C Than C++...
    ... All the kernel level programs are written in C... ... (i.e: Open Source LINUX)... ... Windows) have been written in C, just because C was considered as a 'portable assembler', allowing to drive the hardware on one hand, and to provide a sufficient level of abstraction to build portable interfaces. ... If this is possible in some other language, there is nothing that prevents you to write a new system from scratch using this language. ...
    (comp.lang.c)
  • Re: Why We Use C Than C++...
    ... > All the kernel level programs are written in C... ... (i.e: Open Source ... C - You shoot yourself in the foot. ...
    (comp.lang.c)
  • Why We Use C Than C++...
    ... All the kernel level programs are written in C... ... (i.e: Open Source ... explanation... ... Prev by Date: ...
    (comp.lang.c)