If you have already learnt about C, why do you think not to use it for 8051 ?
If you learn anything about C++ you will quickly find it is not intended for 8bit micro level type embedded applications.
Of course you could simply use C++ as a better C and strictly never use any virtual classes or any dynamic classes and only use
statically allocated memory structures...its possible......but then why not just use C so the language does its bit to apply limitations?
C++ comes into its own when the complexity and size of the application justifies the object orientated approach, because here the cost of resources to
write the software are the mitigating factor, not the amount of memory and processor speed. Embedded example might be the laser printer engine or a radar
control system, or a mobile phone operating system, eg Android! however even these are still mostly written in C. And these processors are usually 32bit ones.
---------- Post added at 15:57 ---------- Previous post was at 15:49 ----------
If you have already learnt about C, why do you think not to use it for 8051 ?
If you learn anything about C++ you will quickly find it is not intended for 8bit micro level type embedded applications.
Of course you could simply use C++ as a better C and strictly never use any virtual classes or any dynamic classes and only use
statically allocated memory structures...its possible......but then why not just use C so the language does its bit to apply limitations?
C++ comes into its own when the complexity and size of the application justifies the object orientated approach, because here the cost of resources to
write the software are the mitigating factor, not the amount of memory and processor speed. Embedded example might be the laser printer engine or a radar
control system, or a mobile phone operating system, eg Android! however even these are still mostly written in C. And these processors are usually 32bit ones.