In compiler theory, dead code elimination is a compiler optimization to remove code which does not affect the program results. Removing such code has two benefits: it shrinks program size, an important consideration in some contexts, and it allows the running program to avoid executing irrelevant operations, which reduces its running time. Dead code includes code that can never be executed (unreachable code), and code that only affects dead variables, that is, variables that are irrelevant to the program.
Read more about Dead Code Elimination: Examples, Dynamic Dead Code Elimination
Famous quotes containing the words dead, code and/or elimination:
“Here dead lie we because we did not choose
To live and shame the land from which we sprung.
Life, to be sure, is nothing much to lose;
But young men think it is, and we were young.”
—A.E. (Alfred Edward)
“Motion or change, and identity or rest, are the first and second secrets of nature: Motion and Rest. The whole code of her laws may be written on the thumbnail, or the signet of a ring.”
—Ralph Waldo Emerson (18031882)
“To reduce the imagination to a state of slaveryeven though it would mean the elimination of what is commonly called happinessis to betray all sense of absolute justice within oneself. Imagination alone offers me some intimation of what can be.”
—André Breton (18961966)