If I might add (being somewhat experienced in C++):
C++ is an exteremely 'complicated' if you need efficiency. Whereas
C has a reasonably constant number of assemby instructions per
C instruction (I think it averages around 5), C++ has a greatly
varying number of assembler statements per C++ statement, it may
be more than 500! (If you consider for instance an 'elegant'
construction
with a derived class and such. The code becomes less transparent and
it is less easy to guess what impact a certain statement will have.
It is possible to write high performance apps like kernels and
emulators in C++, but if you are no expert in the language C++ with
all it's 'tricks', it will probably fail to perform well.
In C, this is more easy since you can see, just by counting lines,
how expensive your code is. (VERY roughly, of course, and this doesn't
mean that writing plex in C is easy, but just that you need to
be less of a wizard in C than in C++ to prevent performance problems).
Leon
Kevin Lawton wrote:
>
> Nicholas Rathke wrote:
> >
> > For my own information is there somewhere where I can read about why C
> > was chosen over C++, I read in the plex86 Docs that it was for the same
> > that the Linux kernel was written in C. Where can I find this info?
>
> I don't remember the link. Should be easy to search for.
>
> The fact is that language was intended to be a teaching or sandbox
> language. If you want a lang that has OO power, without being broken,
> and which is suitable for real hardcore apps, then you have to
> create one. Or stick with a discipline of using only a set of features
> and staying away from gotchas in a current broken lang like C++.
>
> Back to the Linux kernel issue. Listen, I have read a number of
> mailing list messages. No matter what camp you are from, the
> solution which would please most everbody is this. Make a special
> mode of C++ which eliminates the fancy garbage from C++ and compiles
> with a few of the C++ features.
>
> When I can type "g++ --limited-c++ file.cc", then let me know...
>
> -Kevin
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Kevin Lawton [EMAIL PROTECTED]
> MandrakeSoft, Inc. Plex86 developer
> http://www.linux-mandrake.com/ http://www.plex86.org/
--
-----------
In an age when employees are labeled 'human capital' and workplace
longevity
is measured in months, some companies have finally begun to realize that
a
truly loyal employee is a rare and valuable asset that should be
recognized,
nurtured, and, ideally, sold to the highest bidder.