In my experience (both on the Palm and in the embedded systems world) it's
certainly possible to use C++ and stay almost as efficient as pure C,
while gaining a lot of the advantages that C++ provides.

I'd suggest approaching it as an embedded system (i.e. firmware) as
opposed to a desktop application (i.e. software).

Turn off RTTI and exceptions.  Avoid multiple inheritance.  Keep in mind
that virtual functions may be a problem if launched without the globals
being initialized.  Unrestricted use of new and delete may be a problem,
especially on older devices with limited dynamic heap.

Used wisely, the overhead can really be reduced to a bare minimum.  Take a
look at any article on EC++.  A good web page to get started at is
http://www.dinkumware.com/embed9710.html

-- 
Don Meyer
Stormgate Communications


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/
  • Re: C vs. C++ Bradly J. Barton
    • Re: C vs. C++ Stormgate Communications

Reply via email to