FACTOID # 66: Australians have a huge 380,000 sq m of land per person - and yet 91% live in urban areas.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > Dead code

In computer programming, dead code typically consists of blocks of programming instructions or entire routines that will never be accessed because all calls to them have been removed, or code that cannot be reached because it is guarded by a control structure that must always transfer control somewhere else. Some generalize the idea of dead code to any code that can be safely removed without causing an error, such as a definition which is never used. Wikibooks has more about this subject: Computer programming Computer programming (often simply programming) is the craft of implementing one or more interrelated abstract algorithms using a particular programming language to produce a concrete computer program. ...


The presence of dead code may reveal either logical errors due to alterations in the program or significant changes in the assumptions and environment of the program (see also software rot); a good compiler should report dead code so a maintainer can think about what it means. Many times dead code is inserted by a defensive programmer as Assertion Code for tests that really can't happen (yet). Other times dead code is inserted by the programmer for debugging purposes but has yet to be removed. Software Rot, also known as Software Decay comes in two forms; Dormant Rot. ... Assertion Code is computer code that tests for situations that cannot happen, or really should not happen. ...


Before removing apparently 'dead' code, a programmer must be satisfied that it really is dead. This is easier on short pieces but more difficult on long sections where the function it performs is not clear. Thus much dead code remains and its removal by the compiler is important.


  Results from FactBites:
 
Dead code detection and removal (2852 words)
Dead code means unnecessary, inoperative code that can be – and should be – removed.
The dead code may not have been tested thoroughly and it may contain bugs that are hard to detect.
Since dead code detection is a delicate process that requires absolute certainty of the deadness status, developers should only use a tool specifically designed to read source code to find the unused parts.
Dead code elimination - Wikipedia, the free encyclopedia (443 words)
In compiler theory, dead code elimination is a compiler optimization used to reduce program size by removing code which can never be executed (known as dead or unreachable code).
A common use of dead code elimination is as an alternative to optional code inclusion via a preprocessor.
This technique is common in debugging to optionally activate blocks of code; using an optimizer with dead code elimination eliminates the need for using a preprocessor to perform the same task.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.