microcontrollers and C++

Status
Not open for further replies.

7@rB

Junior Member level 3
Joined
Feb 19, 2012
Messages
25
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Lebanon
Activity points
1,458
I have took a microcontroller course early and all what we programmed is with assembly language, we were working with a dspic32f, I saw many posts here talking about microcontrollers project that are programed using C\C++ languages.
my question is: All microcontrollers can be programmed also with C++ ? or just they uses C++ language in order to solve their problems easily?

Regards
 

All smaller microcontrollers are programmed in C, not full C++, because the C++ runtime library is (relatively) large, and smaller microcontrollers don't have enough resources for that.
C code generates just a small amount of assembler instructions, so it is quite close to how the microcontroller functions.
Larger microcontrollers can be programmed in any language if the compiler exists, because larger microcontrollers have the resources (ram, CPU speed, etc).
 

hello sky_123 ,
u mean that it depends on the compiler?
also, according to what we can classify the microcontroller as a large or small one?!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…