This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using c++ with ceibo

does anyone have an experience with c++ using ceibo?
are there any known bugs/optimization problems?

Parents
  • 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.

Reply
  • 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.

Children
No data