Implementing C++ Compiler for Microcontrollers
Dear All,
I am planning to implement the c++ compiler on wide range of microcontrollers. since the c++ compiler is not availaible for freely for embedded controllers. i am planning to take the gcc code from linux and i am planning to add only code generation part depending on the chosen microcontroller.
Is this possible. or any one already done this?
Is iam in right direction?
Any Suggestions on this will be great help.
Thanks in Advance.
rishi.
Re: Implementing C++ Compiler for Microcontrollers
Depends on the microcontroller. The larger ones, (Blackfin DSP, SHARC DSP, ARM, V2X, 68XXX, etc) already have well extablished C++ compilers. The smaller ones (8051, 7088, etc) also do, but are not generally available.
Most developers don't want C++ compilers on small microcontrollers because the code is abstracted too much and the developer needs more control. When you only have a few bytes of memory, you don't want to be passing around objects. :-) Abstracting memory use is NOT a good idea.
-Erik
Re: Implementing C++ Compiler for Microcontrollers
Thank you very much .. Erik