Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Dead code


Related Topics

In the News (Fri 17 Feb 12)

  
  Dead code detection and removal
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.
www.aivosto.com /vbtips/deadcode.html   (2852 words)

  
  Dead code elimination - Wikipedia, the free encyclopedia
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.
en.wikipedia.org /wiki/Dead_code_elimination   (443 words)

  
 Dead code - Wikipedia, the free encyclopedia
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.
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).
en.wikipedia.org /wiki/Dead_code   (235 words)

  
 Dead code elimination -- Facts, Info, and Encyclopedia article   (Site not responding. Last check: 2007-10-26)
Also, even though some calculations are performed in the function, their values are not stored in locations accessible outside the (An area in which something acts or operates or has power or control: "the range of a supersonic jet") scope of this function.
A common use of dead code elimination is as an alternative to optional code inclusion via a (Click link for more info and facts about preprocessor) preprocessor.
This technique is common in (Click link for more info and facts about debugging) debugging to optionally activate blocks of code; using an optimizer with dead code elimination eliminates the need for using a (Click link for more info and facts about preprocessor) preprocessor to perform the same task.
www.absoluteastronomy.com /encyclopedia/d/de/dead_code_elimination.htm   (414 words)

  
 History of Changes
[Incubator] remove dead code Diff Committed by gregor.
[Incubator] Removed dead code or marked it with a FIXME: Diff Committed by egli.
[Incubator] Either removed dead code or tagged it with a FIXME: Diff Committed by egli.
lenya.apache.org /incubator-2003-01-02.svn.html   (2766 words)

  
 Eliminating Dead Code on Recursive Data   (Site not responding. Last check: 2007-10-26)
This paper describes a general and powerful method for dead code analysis and elimination in the presence of recursive data constructions.
We represent partially dead recursive data using liveness patterns based on general regular tree grammars extended with the notion of live and dead, and we formulate the analysis as computing liveness patterns at all program points based on program semantics.
The analysis results are used to identify and eliminate dead code.
www.cs.indiana.edu /~liu/papers/ElimDeadRec-SAS99.html   (163 words)

  
 Dead-code elimination   (Site not responding. Last check: 2007-10-26)
The usual method for dead code elimination is to first locate all instructions that are useful in some sense.
Typically, dead code elimination algorithms start by marking output instructions to be critical.
Any code that is left unmarked is useless to the given computation.
www.cs.uh.edu /~jhuang/JCH/ASE/slicing2/sld021.htm   (67 words)

  
 [OpenH323]dead code and bug in mediafmt.cxx   (Site not responding. Last check: 2007-10-26)
The code will either assign the new media format the next unused RTP payload code or, if new media format is requesting a specific dynamic payload code, it will move the existing media format to the next unused code to prevent conflicts.
This code was added specifically so that the RFC 2833 media format could use RTP payload code 101, which may have been assigned by a previous media format.
Given that dynamic payload codes start at ordinal 96, if there are more than 5 dynamic types then it likely that 101 will be in use.
www.openh323.org /pipermail/openh323/2004-June/068696.html   (283 words)

  
 [OpenH323]dead code and bug in mediafmt.cxx   (Site not responding. Last check: 2007-10-26)
Writing this email has reminded me of what the original code was supposed to do, so I have changed the code again.
This is a bad idea, because the default value for the dynamic code is 96, which means that every time a new media format is created, the old holder of code 96 gets renumbered.
The only format that breaks this rule (currently) is RFC2833, because it has to have code 101, and if something else has that code when it is created, then the old format must be renumbered regardless.
www.openh323.org /pipermail/openh323/2004-June/068707.html   (450 words)

  
 Experiments and Anlysis
In general, doing dead code elimination the last would be a good idea, based on the assumption that since users do not generally write dead code, it would be wasteful doing that earlier.
All optimization passes that I tested the code with, produced correct code, in as much that it gives the output as the un-optimized code.
To show that dead code elimination indeed is an useful postphase for most optimizations, let us compare data in the following table.
www.cs.umd.edu /users/suman/docs/731s98/node11.html   (823 words)

  
 Dead code   (Site not responding. Last check: 2007-10-26)
Even by using for the optimization of the code the level 1 " Dead codes elimination ", code is generated for the uncalled functions.
Dead code elimination should work the same whether I build a lib or list a string of.obj's for the link.
I'd suggest you need perhaps three levels: the current style; a "warnings only" where the linker merely notes that the code has been removed to nag you into getting to the final code yet without adding to the "program size" counters; and a silent option where the code disappears without any warning.
www.keil.com /discuss/docs/thread1701.htm   (664 words)

  
 Dead code: Definition and Links by Encyclopedian.com - All about Dead code   (Site not responding. Last check: 2007-10-26)
Dead code: Definition and Links by Encyclopedian.com - All about Dead code
In computer programming, dead code consists of blocks of programming instructions or entire routines that can 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 provably must always transfer control somewhere else.
Many times dead code is inserted by a defensive programmer for can't happen[?] tests that really can't happen (yet).
www.encyclopedian.com /de/Dead-code.html   (164 words)

  
 What is "Dead Code" ?   (Site not responding. Last check: 2007-10-26)
Dead code is a group of statements that cannot be accessed from any part of a program,
the code is already “attached” (bound) to the name the control had when you wrote the code.
The code is now “orphaned” and must be re-written, or copied to the new procedure’s location.
www.foresightsoftware.com /DeadCode.htm   (105 words)

  
 Dead Code Elimination   (Site not responding. Last check: 2007-10-26)
Code that is unreachable or that does not affect the program (e.g.
The first assignment to global is dead, and the third assignment to global is unreachable; both can be eliminated.
Below is the code fragment after dead code elimination.
www.nullstone.com /htmls/category/deadcode.htm   (103 words)

  
 [OpenH323]dead code and bug in mediafmt.cxx   (Site not responding. Last check: 2007-10-26)
The original code would either assign the new media format its requested dynamic payload code ONLY if there was a match (i.e.
My proposed change would ALWAYS assign its requested dynamic payload code, although it may be later displaced by another media format.
With the original code, because there was no match, it will be assigned the next unused RTP payload code (i.e.
www.openh323.org /pipermail/openh323/2004-June/068704.html   (373 words)

  
 My hovercraft is full of eels: Dead code elimination
That is, code that almost never (if at all) gets executed.
Granted, it is also possible to write some code that loads all your classes and builds dependency graphs to do the same.
And so it came to pass that this morning I was looking over a coverage report and found a few areas where the coverage was a big fat zero.
www.redhillconsulting.com.au /blogs/simon/archives/000125.html   (594 words)

  
 Analyzing and Tweaking Your VB Code
Dead code is, broadly speaking, code that is unnecessary and unused.
A dead parameter is passed to a procedure or method but not used by it.
From the current location in code, a forward call tree shows all procedures that could be called from that location either directly or indirectly.
www.devsource.com /article2/0,1759,1818845,00.asp   (1050 words)

  
 dead code Software, Freeware, Shareware, Downloads
Project Analyzer is a Visual Basic source code analyzer, optimizer and documentor.
It detects problems such as dead code and possible memory leaks.
Scan Visual Basic 6 projects for dead code, unused and undeclared variables, and functions with no return type.
www.ttuga.com /software/88/dead-code.html   (131 words)

  
 Partial Dead Code Elimination using Slicing Transformations   (Site not responding. Last check: 2007-10-26)
In this paper predication algorithms for achieving partial dead code elimination (PDE) are presented.
The process of predication embeds a statement in a control flow structure such that the statement is executed only if the execution follows a path along which the value computed by the statement is live.
We prove that our algorithm never increases the operation count along any path, and that for acyclic code all partially dead statements are eliminated.
www.cs.wisc.edu /~bodik/research/pldi97b.html   (177 words)

  
 redhat.com | Home
Generating perfect target code is almost an impossibility for a multitude of factors: Compiler optimizations usually interfere with each other in almost infinite ways, heuristics and cost models may be wrong, the code may be obscure enough to confuse the optimizers, etc.
Variables disappear, code is executed in seemingly random order, entire function bodies go missing, etc. Usually, none of this means that the compiler is buggy, they are simply side effects of the transformations done to the code.
Since GCC can generate code for a wide variety of architectures, when invoked with default options, GCC will generate generic code for the processor family that it was configured with.
www.redhat.com /magazine/011sep05/features/gcc   (2633 words)

  
 Visual Code San 6
Visual Code San 6 was built to scan Visual Basic 6 projects for dead code, unused or undeclared variables, and functions with no return type or old style return declarations.
The code is colored just like the VB edititor with the addition that problem code is highlighted as well.
For the code, the report lists the number of routines, lines of code, comment, and while space.
windsweptsoftware.com /codetool/vcs6.htm   (798 words)

  
 What is Dead Code   (Site not responding. Last check: 2007-10-26)
Dead Code is my next attempt at novel-length fiction.
One of the comments that I received from Larry Maness on an early draft of On Deadline was that it lacked a romantic interest, which he felt was an important component of books of this type.
I sort of cobbled together one in later drafts of On Deadline, but started Dead Code with the thought that a romantic interest would play a more central role in the story.
www.mv.com /users/peterv/what_is_dead_code.htm   (587 words)

  
 The Dead media Project:Working Notes:39.4
The system brought out in 1874 by Emile Baudot and since considerably developed is a multiplex system giving from two to six channels on one wire, each channel giving a working speed of thirty words per minute.
The complete paper-tape code is given in Appendix 6 of Fosdick's book (page 272).
Surplus Baudot code teleprinters with built-in modems were also distributed to hearing-impared individuals who could then communicate independently.
www.deadmedia.org /notes/39/394.html   (1008 words)

  
 DEAD_CODE
This error is generated when code is not evaluated, has no effect, or is unreachable.
Error messages are classified according to this scheme and can be selectively enabled or disabled.
The following code illustrates several types of DEAD_CODE errors in C. 2: * File: deadcode.c 3: */ 4: int main() 5: { 6: int i = 0; 7: 8: ; 9: i; 10: for (i; i; i) 11: ; 12: return 0; 13: }
www.fz-juelich.de /zam/PTdocs/insure/err_dead.htm   (191 words)

  
 Blogcritics.org: Grand Theft Auto: Sex, lies, and modified code
However, the code is still on the disc, and that has critics bashing the company for being irresponsible and ESRB for not being strict enough.
The code was made by hackers and it's not on the disc.
Matt, you should have told him that the secret code is revealed by scratching an X into the bottom of the disc with a straight pin.
blogcritics.org /archives/2005/07/09/172936.php   (5322 words)

  
 Eliminating Dead Code on Recursive Data   (Site not responding. Last check: 2007-10-26)
This paper describes a powerful method for dead code analysis and elimination in the presence of recursive data constructions.
We describe partially dead recursive data using liveness patterns based on general regular tree grammars extended with the notion of live and dead, and we formulate the analysis as computing liveness patterns at all program points based on constraints constructed from the program and programming language semantics.
The framework for representing and analyzing properties of recursive data structures using general regular tree grammars applies to other analyses as well.
www.cs.sunysb.edu /~stoller/ElimDeadRec.html   (141 words)

  
 Dead Code Elimination in Formal Synthesis (ResearchIndex)   (Site not responding. Last check: 2007-10-26)
Abstract: An important optimization of behavioral code is the elimination of dead code.
In this paper, we present a procedure for dead code elimination (DCE) in the formal synthesis process.
In our terminology, the term formal synthesis stands for a synthesis process in which the implementation is derived from the speci cation by the application of logical transformations within a theorem prover.
citeseer.ist.psu.edu /682114.html   (328 words)

  
 Partial Dead Code Elimination - Knoop, Ruthing, Steffen (ResearchIndex)   (Site not responding. Last check: 2007-10-26)
Abstract: A new aggressive algorithm for the elimination of partially dead code is presented, i.e., of code which is only dead on some program paths.
Besides being more powerful than the usual approaches to dead code elimination, this algorithm is optimal in the following sense: partially dead code remaining in the resulting program cannot be eliminated without changing the branching structure or the semantics of the program, or without impairing some program executions.
103 Lazy code motion - Knoop, Ruthing et al.
citeseer.ist.psu.edu /knoop94partial.html   (682 words)

  
 [No title]
"Dead instructions" have no impact on the program's output, while "necessary instructions" may have impact on the output.
The algorithm consists of three phases: 1) marking as necessary all instructions known to be necessary, e.g., writing a value to memory, 2) propagating necessary instructions, e.g., the instructions giving values to operands in necessary instructions, and 3) removing dead instructions (except replacing dead conditionals with unconditional jumps).
The program counter (PC) is not considered inherently necessary since code should be position-independent and thus not depend on particular PC values.
www.opensource.apple.com /darwinsource/10.3.5/gcc-1495/gcc/ssa-dce.c   (2213 words)

  
 Dead Code Elimination   (Site not responding. Last check: 2007-10-26)
All instructions that define a certain variable, which is not subsequently used, is dead.
The data flow solver is used to solve a backward data flow problem of liveness of variables.
The solution is used to eliminate all code that is found to be dead.
www.cs.umd.edu /users/suman/docs/731s98/node8.html   (75 words)

  
 Dead-Code Elimination   (Site not responding. Last check: 2007-10-26)
Each of the following code examples illustrates one of the optimizations:
Unreachable code removal, as shown in the following example:
The full effect of dead-code elimination is realized when combined with other optimizations, such as subprogram inlining and forward substitution, which help in exposing useless or unreachable code.
www.mun.ca /hpc/kapc/kapc_osf_ug0123.html   (139 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.