Maybe I should not react to this, but here I go... >> exception handling => safety critical stuff > > exception handling => race condition on small micro a "race" condition is something very important indeed. But I assume you meant "rare"? You did a lot of automibile, military, nuclear, and space projects? Ever programmed for ESA? Ever programmed in a language that had exception handling, so you could appreciate it? > > templates => flexible libraries (reduces development costs) > > flexible libraries with C++ calling conventions => huge > memory and code overhead, high library porting and maintenance cost I dunno about C++ calling conventions (multiple?), C++ can call by C convention if you want. Did you ever actually use templates? Using it can actually *save* code compared to a (roughly) equaly flexible C library. > > "better C part of C++" => less coding errors > > worse C++ expands C => the temptation to use automatic > strings on a micro with limited RAM, the temptation to use > inheritance and object collection on same, the temptation to > call by reference in a non-memory protected environment Temptation to use 'general' memory allocation/deallocation is easily handled by not linking agains memory allocation. This 'tempation' is available in C too, but I admit it is more visible there. Inheritance is actualy very useable, and static (not dynamic) inheritence cost *nothing* more than a C call. Dynamic inhertance can - when used properly, like all tools - save a lot of code. It can aslo be misused. Which tool can't? > Also code footprint 30% to 300% of optimized C code. If you mean 0.3 .. 3.0 times the footprint of C code you are not saying very much, except that C++ can be better (and can be worse). If you meanr 0.3 to 3.0 times *more*: bullocks. Take your C code, pass it through a C/C++ compiler in C++ mode and get the same assembly as in C mode. After that, see what could be done better with C++ constructs and start saving code. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist