-1
$\begingroup$

Was working on a python related to avionics, came across a serious doubt whether code written in python would compile or run on a real time OS used in on board systems.

$\endgroup$
11
  • 2
    $\begingroup$ Related: Why is Python used on aircraft although it may not be certifiable? $\endgroup$
    – user14897
    Commented Jun 18, 2019 at 11:44
  • 1
    $\begingroup$ From a software certification viewpoint, you are going to have a much more difficult time certifying Python software in a safety critical application. Even C++ can require more work than C or Ada. The related question @ymb1 shared has some very useful information. $\endgroup$ Commented Jun 18, 2019 at 13:31
  • $\begingroup$ See stackoverflow.com/questions/7079864/… $\endgroup$ Commented Jun 18, 2019 at 13:38
  • 1
    $\begingroup$ It also does not help that Python cannot be compiled to machine code. Many people talk about Python compilers but they are all interpreters. Use the right tool for the job. $\endgroup$ Commented Jun 18, 2019 at 13:49
  • 1
    $\begingroup$ Good point @JuanJimenez. $\endgroup$
    – GdD
    Commented Jun 18, 2019 at 14:13

1 Answer 1

1
$\begingroup$

Language like Python, Java or C# require complex execution environment to run. This environment consists of tens and hundreds of thousands lines of code. It would be a huge work to review and certify it all, so certifying a Python application is not about reviewing ten lines of code that implement the needed algorithm.

While there are also various libraries for C or C++ as well, they are all optional. There is much more built-in stuff in high level languages, starting from the memory garbage collector that alone may be enough to make the implementation too complex to deal with.

Also, high level languages tend to have slightly unpredictable execution speed with short arbitrary pauses (they are not real time). This also limits where they could be used.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged .