Content deleted Content added
removed repetion |
|||
Line 1:
In [[computer programming]], '''dead code''' is
While the result of a dead computation may never be used, it may raise [[Exception handling|exceptions]] or affect some global state, thus removal of such code may change the output of the program and introduce unintended [[software bug|bugs]]. Compiler optimizations are typically conservative in their approach to dead code removal if there is any ambiguity as to whether removal of the dead code will affect the program output. The programmer may aid the compiler in this matter by making additional use of [[Method (computer programming)#Static methods|static]] and/or [[Inline function|inline]] functions and enabling the use of [[link-time optimization]].
|