Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 1:
{{TOCright}}
'''Dead code''' is a [[computer programming]] term for code in the [[source code]] of a program which is executed but whose result is never used in any other computation.<ref>[http://doi.acm.org/10.1145/349214.349233 Debray, S. K., Evans, W., Muth, R., and De Sutter, B. 2000. Compiler techniques for code compaction. ACM Trans. Program. Lang. Syst. 22, 2 (Mar. 2000), 378-415.]</ref> The execution of dead code wastes computation time as its results are never used. Dead code is not equivalent to [[unreachable code]], which is code that can never be executed.
Line 40 ⟶ 20:
Dead code elimination is a form of [[compiler optimization]] in which dead code is removed from a program. Dead code analysis can be performed using [[live variable analysis]], a form of [[static code analysis]] and [[data flow analysis]]. This is in contrast to [[unreachable code]] analysis which is based on [[control flow]] analysis.
The dead code elimination technique is in the same class of optimizations as [[unreachable code]] elimination and [[redundant code]] elimination.
|