Memory Address - Contents of Each Memory Location

Contents of Each Memory Location

See also: binary data

Each memory location in a stored-program computer holds a binary number of some sort. Its interpretation, as data of some data type or as an instruction, and use are determined by the instructions which retrieve and manipulate it.

Some early programmers combined instructions and data in words as a way to save memory, when it was expensive: The Manchester Mark 1 had space in its 40-bit words to store little bits of data – its processor ignored a small section in the middle of a word – and that was often exploited as extra data storage. Self-replicating programs such as viruses treat themselves sometimes as data and sometimes as instructions. Self-modifying code is generally deprecated nowadays, as it makes testing and maintenance disproportionally difficult to the saving of a few bytes, and can also give incorrect results because of the compiler or processor's assumptions about the machine's state, but is still sometimes used deliberately, with great care.

Read more about this topic:  Memory Address

Famous quotes containing the words contents of, contents and/or memory:

    Yet to speak of the whole world as metaphor
    Is still to stick to the contents of the mind
    And the desire to believe in a metaphor.
    It is to stick to the nicer knowledge of
    Belief, that what it believes in is not true.
    Wallace Stevens (1879–1955)

    If one reads a newspaper only for information, one does not learn the truth, not even the truth about the paper. The truth is that the newspaper is not a statement of contents but the contents themselves; and more than that, it is an instigator.
    Karl Kraus (1874–1936)

    There must be a solemn and terrible aloneness that comes over the child as he takes those first independent steps. All this is lost to memory and we can only reconstruct it through analogies in later life....To the child who takes his first steps and finds himself walking alone, this moment must bring the first sharp sense of the uniqueness and separateness of his body and his person, the discovery of the solitary self.
    Selma H. Fraiberg (20th century)