Redundant code: Difference between revisions

Content deleted Content added
No edit summary
Grammatical error correction.
Line 3:
{{Unreferenced section|date=October 2008}}
 
'''Redundant code''' is a [[computer programming]] term for code, which may be [[source code]] or compiled code in a [[computer program]], that has any form of redundancy, such as recomputing a value that has previously been calculated<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> and is still available, code that is never executed (often called [[unreachable code]]), or code which is executed but has notno external effect (e.g., does not change the output produced by a program) usually known as [[dead code]].
 
A [[NOP]] instruction might be considered to be redundant code that has been explicitly inserted to pad out the [[instruction (computer science)|instruction]] stream or introduce a time delay. [[Identifier]]s that are declared but never referenced are usually termed as [[redundant declaration]]s.