does anyone have an experience with c++ using ceibo? are there any known bugs/optimization problems?
I just googled the Ceibo web site. They have a free download eval copy of the EC++ for 8051. Just from the reading, it appears to be a pre-compiler front end to the Keil tools??? Keil has a EC++ compiler for the C166/St family of 16 bit chips. They also have a down load eval for the PK166. Maybe, this is something to consider. The XC16x chip have a lot of power in small low cost devices that will better support C++ than the C51 family. Bradford
thanks a lot for all of your responses. we do need to do some serious homework...
Memory allocation on the C51 is difficult at best. With constructor/destructors allocations, aren't you asking for more problems than gains from using C++? Construction/destruction of objects does not necessarily require any dynamic memory allocation. It's up to the programmer. Constructing might be initialization, or it might be allocation from a fixed table of entries with no heap involved. In any language, you have to make your your objects (records/structs/table entries/variables) are initialized before they're used. "C++" is a language, not a style or method of programming. It's perfectly possible to use C++ to write 8051 code, at least if you had a good 8051 C++ compiler. You might well want to avoid any number of implemention techniques or designs due to architectural limitations of the microcontroller. But then, that statement is true of programming in C, or even in assembler.
"I just googled the Ceibo web site. They have a free download eval copy of the EC++ for 8051. Just from the reading, it appears to be a pre-compiler front end to the Keil tools???" For reference, here's the links - make of them what you will: Ceibo News page: http://www.ceibo.com/eng/general/newsltr.shtml#cpl Ceibo C++ "compiler" datasheet: http://www.ceibo.com/eng/pdf/cpp.pdf Demo download: http://www.ceibo.com/ftp-site/update/8051cpp.zip
That may be the first data sheet that's actually less informative than the press release. The Ceibo product is actually only a EC++ compiler. EC++ is a subset of ANSI C++ with some significant limitations and feature removal.