Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
i really doubt that programming microcontrollers in C++ would be a good idea. if u read the C Vs ASM debates on this forum and all around the internet you will see that the biggest problem with programming microcontrollers in C is that the code produced is not memory efficient and its not close to the architechture of the microcontroller. the situation with C++ might be worse. its good to use C++ instead of C when you are programming on a PC but there you have alot of memory space which is not the case with microcontrollers
I accept C++ will worsen the memory consumption in MCUs.
Ok but can you think about Complex programs. U can make the entire project in to modules . Now we have PIC MCUs having more than 64kbytes of memory if the complexity and efficiency is concerned C++ will be the best. C++ is really a powerful language if understood properly.
So its not a bad Idea , Programming in C++. unfortunately we dont have more C++ cross compilers.
We hope it will be alright in near future
C has powerfull scoping rules and a program can be broken down into seperate files using a linker. A complex program is when the source code exceeds about 25000 lines.
C++ was really designed for very large distributed programs. C is a very powerfull and elegant programming language, C++ is a convoluted mess.