There is two distinct schools of thought when analyzing the C programming language and comparing it and contrasting it to other languages. Many view C++ as a more modern version of C while others feel that C has stood the test of time and will be around for many years more.
The advantages of programming in C are substantial for embedded systems.
- The close relationship between the code that is generated and actual machine code is a big advantage when trying to develop embedded systems.
- The close relationship between the underlying hardware and the representation of the hardware in the code is a big advantage for embedded programming.
- The ability to easily understand the compiler generated code and how it processes arrays and structures is a big advantage for embedded developers interested in optimizing for real time performance.
In contrast, the same is largely true for C++, however there is an extra layer of indirection in the system dealing with classes, instances and methods which makes things less clear.
C language programming is easily learned, another substantial advantage. There are two books listed below which are useful if you want to learn C language. Click here.
to download the first one titled “C Book” absolutely free.
