slovodefinícia
dead code
(foldoc)
dead code
infeasible path

(Or "infeasible path") Any part of a program
that can never be executed because no control flow path
leads to it. This may be because it is guarded by a {control
structure} that will always transfer control somewhere else,
e.g.

if (false)
{
# dead code
}

or it may be for a less obvious, less local reason, e.g. a
function that is only called to handle input that never
occurs.

Determining that code is dead may thus require analysis of the
whole program. Consideration of possible inputs is probably
beyond the normal (static) identification of dead code.

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}). Sometimes it simply represents can't happen tests
inserted by a defensive programmer.

A good compiler should warn about dead code or simply ignore
it (dead code elimination).

The presence of dead code may reduce reported test coverage
since in most cases no unit test will exercise the code.

[Jargon File]

(2020-01-31)
dead code
(jargon)
dead code
n.

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. 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. (Sometimes it simply
means that an extremely defensive programmer has inserted can't happen
tests which really can't happen — yet.) Syn. grunge. See also dead, and
The Story of Mel'.
podobné slovodefinícia
dead code elimination
(foldoc)
dead code elimination

(DCE) A compiler optimisation that detects
dead code (code that will never be executed) and ignores it
rather than blindly compiling it. DCE reduces the size of the
resulting executable, saving space and load time.

(2018-06-26)

Nenašli ste slovo čo ste hľadali ? Doplňte ho do slovníka.

na vytvorenie tejto webstránky bol pužitý dictd server s dátami z sk-spell.sk.cx a z iných voľne dostupných dictd databáz. Ak máte klienta na dictd protokol (napríklad kdict), použite zdroj slovnik.iz.sk a port 2628.

online slovník, sk-spell - slovníkové dáta, IZ Bratislava, Malé Karpaty - turistika, Michal Páleník, správy, údaje o okresoch V4