Using C++ in an embedded environment

前端 未结 11 1280
执笔经年
执笔经年 2021-01-02 17:43

Today I got into a very interesting conversation with a coworker, of which one subject got me thinking and googling this evening. Using C++ (as opposed to C) in an embedded

11条回答
  •  抹茶落季
    2021-01-02 18:33

    Depends what kind of embedded development you are doing. I've done embedded development with both C++, C, and Assembly on various platforms, you can even use Java to write applications on smart phones.

    For instance on a smart phone like device that's running Windows CE 5, almost all of the code is C++, including in the operating system. Only small bits are written in C or assembly.

    On the other hand I've written code for an MSP430 microcontroller, which was in C, and I probably would have done that in C++ had the compiler been more reliable and standards compliant.

    Also I seem to recall a university lecturer of mine talking about writing embedded code in Forth or something. So really any language can do.

提交回复
热议问题