The C programming language has been with embedded software developers since its creation in 1972. Ever since then C has been a blazing constant, surviving even the big push in the late 90’s and early 21st century to move to C++ or other object oriented languages. Undoubtedly, C will continue to be a foundational language for embedded systems but over the last year, the language has begun to see a decrease in popularity.
Don’t believe me? Take a look at the TIOBE Index image snapshot taken in early August 2016. Since November 2015, C’s popularity has been dropping like a rock, reaching an all-time low (well at least since the index started back in 2001).
Now keep in mind that the TIOBE index calculates the popularity for programming languages as a whole and not just for embedded system use. TIOBE scans the internet, search engines and websites looking for programming language search trends. It’s interesting to note that up until just recently, C has always been a constant pillar programming language. So what exactly is going on?
There are multiple changes that are currently driving change in industry. First, the big push to IoT devices and infrastructure is putting a large emphasis on programming languages for mobile devices and cloud based services. The C programming language is not well suited for these applications. C is meant for low level programming that needs to be fast and efficient. As more developers adopt web based technologies, it only makes sense that the general use for the C programming language as a whole would decrease.
The next big area to consider is the embedded space. Traditionally embedded software is mostly written in C. Microcontroller manufacturers provide example code in C, drivers, etc. Most middleware and RTOSes are written in C. Example code and open source software is written in C. C programming is engrained in the embedded space.
Using C in the embedded space is starting to change. The reduced cost and availability for 32-bit microcontrollers is beginning to cause a change in the industry. Efforts by ARM to push out mbed along with RTOSes and examples in C++ may start to change the trend to C++ rather than defaulting to C. Microcontrollers are becoming so complex that for many applications it doesn’t make sense for developers to work at the hardware level twiddling bits and bytes. Instead, using higher level languages such as Python are beginning to become more popular. The trend is not just at the application processor level either such as with Raspberry Pi’s but is even being seen with resource constrained microcontrollers that can run ports like Micro Python.
For more details: It’s the end of C as we know it!