Re: C++ in embedded systems

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


Date: Fri, 15 Aug 2003 11:27:24 +0100

Tim Clacy wrote:
> Ian Bell wrote:
>
>>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
>
>
> You might find this article interesting:
>
> http://www.codeproject.com/gen/design/theWrongObject.asp

Coundn't get this url to work. Can you confirm it is correct?

>
> Essentially, it's saying that OOD is good... but you need to be very
> experienced before you really see the benefit. I tend to agree with that.
>
> You might also find this article interesting (taken from a reply to a
> similar C++/embedded thread in comp.lang.c++):
>
> http://www.objectmentor.com/resources/articles/WhyAreYouStillUsingC.pdf
>
>
> Tim
>
>



Relevant Pages

  • Re: C++ in embedded systems
    ... Someone mentioned he designs using OOD ... > that have software engineering formation though and they tend to use ... Objects bear no relationship to actual objects ...
    (comp.os.linux.embedded)
  • 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
    ... Ian Bell wrote: ... > Tim Clacy wrote: ... it's saying that OOD is good... ...
    (comp.os.linux.embedded)