Device drivers of new devices are always written in C. The reason is that C provides you access to the basic elements of the computer. It gives you direct access to memory of your CPU through pointers. It allows you to manipulate and play with bits and bytes.
Category: Why Choose ?
Major parts of the Windows
Major parts of the Windows, Unix and Linux are still written in C. So if you want program these OS or create your own you need to know C.
C language has other features like Portability, Modularity, and Structure Oriented. Since C programming language is very old language (developed around 1970-1972) still it is more popular due to its features.
C language is free
C language is free, and you do not have to pay anything even if you are using C language for embedded systems. We can easily access any hardware device attached with the micro-controller (please, don’t confuse here, in embedded systems micro-controllers are like processors), for example: we can capture images through the camera, record videos by writing functions (known as device drivers) for it.
Most popular programming languages
C language is one of the most popular programming languages which are able to make low level applications like device drivers, operating systems, firmware etc along with the high level applications like desktop applications. Note that: due to this amazing feature C programming language is known as “Middle Level programming language”.
Rich set of data types
C language has rich set of data types with awesome features of type qualifiers like const, volatile etc.
Less number of standard libraries
C language has less number of standard libraries and library functions (those are well-established and standardized portable) but they can be used to design any kind of (almost) functions.
Less number of keywords
C language has less number of keywords, as we know that in a standard version of C programming language there are only 32 keywords and 32 keywords are easy to remember.