by dognotdog · 11y ago · 0 comments
I am coincidentally researching if I could rewrite parts of a personal project in Ada (from C) to improve reliability, and so far have failed to conclude either way.
There is a blog post about rewriting a drones control system in Spark if you were curious: http://blog.adacore.com/how-to-prevent-drone-crashes-using-s...
It does exactly what you were planning. Taking C code and rewriting it in Spark in an embedded environment.
Ada/SPARK have merit if you really want to do hard real time and formal methods. That seems overkill for a personal project?
Frama-C might be worth looking into if the goal is improved reliability, and they'd be able to leverage their existing C skillset.
The MISRA documentation is not very expensive and useful by itself, £15 + VAT for an ecopy: http://www.misra.org.uk/?TabId=58
It's possible to run L4 processes written in SPARK on top of seL4.