Re: C vs C++ in Embedded Systems?

From: Grant Edwards (grante_at_visi.com)
Date: 01/28/05


Date: 28 Jan 2005 19:12:05 GMT

On 2005-01-28, Mayank Kaushik <prehistorictoad2k@yahoo.com> wrote:

> How do C and C++ compare vis-a-vis Embedded Systems?

IMO, nobody should write a line of source code for an embedded
system unless they know ahead of time what code (more or less)
the compiler is going to generate. That's possible with C.

The C++ language is so unbelievably complex and "feature"
ridden, that nobody ever quite knows what's going to happen
when they write a line of code.

IOW, I don't approve of C++ for embedde use. Or for
non-embedded use, actually.

-- 
Grant Edwards                   grante             Yow!  Not SENSUOUS... only
                                  at               "FROLICSOME"... and in
                               visi.com            need of DENTAL WORK... in
                                                   PAIN!!!


Relevant Pages

  • Re: C vs C++ in Embedded Systems?
    ... > IMO, nobody should write a line of source code for an embedded ... > the compiler is going to generate. ...
    (comp.arch.embedded)
  • Re: need help on need help on generator...
    ... I'm not dumb enough to say "Sure, ... I'd be happier to change the behaviour so that a warning isn't ... so long as nobody is relying on the ... read over the `file' source code before impulsively saying anything ...
    (comp.lang.python)
  • Re: biggest single ref error of all times
    ... IMO this is just a sign that this ... sort of things has become so common nobody notices them any more. ... Besides, the foul is somewhat debatable, though the hand on Podolski's ...
    (rec.sport.soccer)
  • Re: My webpgage
    ... > What do I have to do that nobody is able to copy pictures. ... This means they have to download the source code and they have to ... download the images. ...
    (comp.lang.java)
  • Re: [Diehard] Overlap sum test
    ... >> I'd like to hear some comment based on real facts. ... I pasted your explanation in the source code of my implementation of ... possibly bug and nobody seems interested in that post. ...
    (sci.crypt)