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

Bug in compiler

I,ve installed the Compiler and I can,t get even the simplest code to compile properely.

Anyone know where the fix for this bug is?

Or is it a limit of the demonstration version?

void main(void)
{ cout << "Hello world!";
}

Parents
  • Ok,

    The general view from this forum is that C++ an the 8052 don't mix.

    Well, why do Ceibo have a product to do what you have been saying is not suitable?

    I assume that they do have customers for such a product otherwise they would be out of business - Right?

    So either they are wrong or you are wrong.

    I think it is the product to try. It's just that I think the cost is too much. Maybe I won,t be able to afford such a big turkey this year ;)

Reply
  • Ok,

    The general view from this forum is that C++ an the 8052 don't mix.

    Well, why do Ceibo have a product to do what you have been saying is not suitable?

    I assume that they do have customers for such a product otherwise they would be out of business - Right?

    So either they are wrong or you are wrong.

    I think it is the product to try. It's just that I think the cost is too much. Maybe I won,t be able to afford such a big turkey this year ;)

Children
  • Well, why do Ceibo have a product to do what you have been saying is not suitable?

    Because there is a demeand from 'customers' that do not know better

    Based on your posts I am confident that you have no idea of the '51 architecture (VERY fastidious statement: real programmers do not care about such details) so, to you, the '51 is "just another processor that you do not need to know".

    This has nothing to do with C++, but with "real programmers". I was asked to help on implementing code banking (allowing a '51 program to be more than 64 k) by a company that had hired "real programmers" who, of course, started out with a 'great' OS and multitasked even the simplest operations. I had a look and redid the whole shebang to working code that fit in 8k.

    there is no universal language, there is no universal processor some companies make money from those that believe it is so. And eveidently that will happen again. Have fun till you see your mistake.

    Erik

  • "Well, why do Ceibo have a product to do what you have been saying is not suitable?"

    Why do people who never drive outside the city limits have 4x4s?
    Why do people fit spoilers to cars that cannot possible reach a sufficient speed for them to be of any advantage?
    etc, etc...

    I think you'll find that Ceibo is the only C++ product for the 8051, whereas there are many C compilers (some not even full ANSI) for the 8051 - that fits very well with the general opinion that C++ is not generally suitable for 8051 products.

    "I assume that they do have customers for such a product otherwise they would be out of business - Right?"

    Not necessarily: the 8051 C++ is not their only product - maybe not even a major product for them.

    "Maybe I won,t be able to afford such a big turkey this year"

    Buy an 8051 C++ cross-compiler - you might find that you do have a big turkey...

    ;-)

  • "Ok,

    The general view from this forum is that C++ an the 8052 don't mix."

    Filip,

    Their real statement is somewhat more basic than that, but may not quite have gotten through. When you're programming for an "embedded" processor, various assumptions that are easy-to-make and almost guaranteed to be "correct" in a desktop environment cease to make any sense. Imagine this situation: Someone could have an 8052 based system that has all of the following:

    1. A large LED bar sign that can scroll text
    2. A small LCD display
    3. A serial port

    All of these bits of hardware could be considered the "console" referred to by cout. Which one is appropriate? Further, what code should be generated to control one of them when you use "cout <<"? These are the kinds of things that have to be considered in an embedded project.

    I will make a prediction: If you buy the Ceibo package, it will have no idea how to compile "cout <<" unless you customize some library or at least tell it in detail what type of display and controller chip are attached to your board and where.

    -Jay Daniel