Re: which object orient language is most suitable for embedded programming?



"David Brown" <david@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4566a258$0$8082$8404b019@xxxxxxxxxxxxxxxxxx

Two features of C++ can produce a lot of overhead in C++ programs,
especially for small systems - exceptions and RTTI. If you can disable
them in the compiler (and C++ compilers I have seen let you do that), then
the C++ compiler should generate pretty much identical code for a C
function compiled as either C or C++. In other words, no overhead.

I've long thought that "exceptions" should have been called "nappies" ;).

More seriously, exceptions seem to have been introduced because programmers
were traditionally so poor at dealing with error conditions. Adding
"nappies" is perhaps understandable in such circumstances, but a better
solution would have been more rigorous housetraining ;).

Steve
http://www.fivetrees.com


.