does anyone know of a 32-bit microcontroller with a C++ compiler (i'm new at this)
Three answers:
Paul
2009-06-26 14:19:09 UTC
C++ generally has too much baggage for embedded applications with limited resources (RAM/ROM/etc) so C is much more common.
jplatt39
2009-06-26 21:53:54 UTC
Obviously as stated above, without more information our ability to help you may be limited. However GCC is widely used as both a compiler and a cross-compiler, including on some embedded systems, and documentation for implementing it as such is widely available. That in fact more than anything else has spurred the spread of linux. While it was written for the i386 chip originally, the very fact is was compiled on GCC meant that porting it over to other architectures could be done with efficiency and eventually quickly. Compiling GCC can be tricky, however I have done it myself, and I would not describe myself as better than competent at C/C++. Cross-compiling it can be straightforward, once you understand how to do it, and that it is usually available as source code and as documentation for building these cross-compilers yourself has never been an issue among people I know.
The One JB
2009-06-26 20:32:38 UTC
It really depends on the micro-controller you are using. Most have at least one or two compilers for various languages floating about. In my experience, just about any good micro-controller has a C compiler at least, though I haven't seen any C++ compilers for micro-controllers yet. However, that may be just because I never looked for one.
In the end, it's all really about the particular micro-controller that you are using.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.