Is there a better way to write more robust code ? Ever considered using a different programming language?
Ada and Pascal have been around since the 80's but C has dominated embedded systems programming to date.
In the age of IOT and cheap 32 bit microcontroller maybe it's time to reconsider Ada.
• An Introduction to GNAT Programming Studio
http://www.adacore.com/
http://www.runtimerec.com