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
  • Where will the "cout" output go?

    cout = console output

    I,ve been given some hardware with a display on it.
    A display makes a good console output.

    So I need it to go to the display.

    I know SDCC is a C compiler, but it is based upon GPL code so I think maybe someone hitches it to the GCC compiler chain.

    Probable you think?

Reply
  • Where will the "cout" output go?

    cout = console output

    I,ve been given some hardware with a display on it.
    A display makes a good console output.

    So I need it to go to the display.

    I know SDCC is a C compiler, but it is based upon GPL code so I think maybe someone hitches it to the GCC compiler chain.

    Probable you think?

Children
  • I,ve been given some hardware with a display on it.

    ... and the compiler is supposed to know about this how ?

    A display makes a good console output.

    It's nice and human-readable, but way, way more complex than, say, a serial port.

    So I need it to go to the display.

    In that case, you'll need to write code that controls the display, or find some library that contains such code.

    The compiler doesn't know about the hardware you're using.

  • I,ve been given some hardware with a display on it.
    A display makes a good console output.
    So I need it to go to the display.

    You'll probably need to do a bit more to get this working (display driver?).

    I know SDCC is a C compiler

    I wasn't sure because you didn't find this info for the Keil compiler.

    but it is based upon GPL code so I think maybe someone hitches it to the GCC compiler chain.

    I'm not sure what you mean with "hitching it to the GCC compiler". If you mean adding 8051 support to GCC (C++), I wouldn't call that "hitching" :-)

    So, basically your question is: "does anyone know a free (as in beer and speech) C++ compiler for the 8051?". Is that correct?

    --
    Joost