Re: C++ in embedded systems

From: Ian Bell (ianbell)
Date: 08/14/03


Date: Thu, 14 Aug 2003 14:20:04 +0100

Mad@Spammers wrote:
> Hi.
>
> I have followed some discussions about C++ deployment in embedded
> systems and I learned there are several criticism on C++ itself and
> its deployment in such systems. Someone mentioned he designs using OOD
> but implements in C and Assembly, which would be my approach as well
> (maybe because I started as hardware designer and tend to consider
> hardware limitations when designing software :-) ). I work with people
> that have software engineering formation though and they tend to use
> every resource of C++ without concerns with performance in the
> embedded realm, leaving eventual optimizations to the end of the
> design which we know it's much more difficult and neither practical
> nore echonomicaly wise. I don't think these folks would go back to C
> even using OOD techniques so I'd like to get the best possible from
> C++ advantages and avoid its drawbacks. I would appreciate if you
> could comment on this and give hints on what to avoid when programming
> for embedded systems in C++. Suggestions of books and links will be
> very much appreciated as well.
>

My personal (and possibly controversial) view is that OOD is a complete
waste of time in general and absolutely useless for embedded systems.
there a many reasons why I hold this view but some of them are:

1. Objects bear no relationship to actual objects
2. Information hiding and the other OO so called 'attributes' are
counterproductive to embedded development where the intimate connection
between the hardware and the software must never be diluted.

Ian



Relevant Pages

  • Re: C++ in embedded systems
    ... Ian Bell wrote: ... Someone mentioned he designs using ... >> OOD but implements in C and Assembly, which would be my approach as ... Objects bear no relationship to actual objects ...
    (comp.os.linux.embedded)
  • Re: C++ in embedded systems
    ... Someone mentioned he designs using ... >> OOD but implements in C and Assembly, which would be my approach as ... >> well (maybe because I started as hardware designer and tend to ... > done assembler. ...
    (comp.os.linux.embedded)
  • Re: C++ in embedded systems
    ... Someone mentioned he designs using OOD ... Most embedded programming is done in C ... assembler. ...
    (comp.os.linux.embedded)
  • C++ in embedded systems
    ... I have followed some discussions about C++ deployment in embedded ... Someone mentioned he designs using OOD ... that have software engineering formation though and they tend to use ... C++ advantages and avoid its drawbacks. ...
    (comp.os.linux.embedded)
  • Re: C++ in embedded systems
    ... Tim Clacy wrote: ... Objects bear no relationship to actual objects ... >>counterproductive to embedded development where the intimate ... it's saying that OOD is good... ...
    (comp.os.linux.embedded)