According with Wikipedia, "In computer programming, dead code is a section in the source code of a program which is executed but whose result is never used in any other computation.". The presence of dead code is specially bad in embedded systems - like Zephyr - because it wasting resources and, possibly, affecting timing constraints.
Dead code is also doomed by several "process" standards like IEC 61508 and ISO 26262.
Static analysis tools like coverity can be used to check it.
According with Wikipedia, "In computer programming, dead code is a section in the source code of a program which is executed but whose result is never used in any other computation.". The presence of dead code is specially bad in embedded systems - like Zephyr - because it wasting resources and, possibly, affecting timing constraints.
Dead code is also doomed by several "process" standards like IEC 61508 and ISO 26262.
Static analysis tools like coverity can be used to check it.
part of #9552