Modifying Code

Some articles on modifying code, code:

Self-modifying Code - Disadvantages
... Self-modifying code is harder to read and maintain because the instructions in the source program listing are not necessarily the instructions that will be executed ... Self-modifying code can be rewritten as code that tests a flag and branches to alternative sequences based on the outcome of the test ... Self-modifying code avoids making such a test on every occasion, and typically runs faster ...
Usage - Interaction of Cache and Self-modifying Code
... cache (some ARM and MIPS cores) the cache synchronization must be explicitly performed by the modifying code (flush data cache and invalidate instruction cache for the modified memory area) ... In some cases short sections of self-modifying code execute more slowly on modern processors ... This is because a modern processor will usually try to keep blocks of code in its cache memory ...

Famous quotes containing the words code and/or modifying:

    ...I had grown up in a world that was dominated by immature age. Not by vigorous immaturity, but by immaturity that was old and tired and prudent, that loved ritual and rubric, and was utterly wanting in curiosity about the new and the strange. Its era has passed away, and the world it made has crumbled around us. Its finest creation, a code of manners, has been ridiculed and discarded.
    Ellen Glasgow (1873–1945)

    If one had to worry about one’s actions in respect of other people’s ideas, one might as well be buried alive in an antheap or married to an ambitious violinist. Whether that man is the prime minister, modifying his opinions to catch votes, or a bourgeois in terror lest some harmless act should be misunderstood and outrage some petty convention, that man is an inferior man and I do not want to have anything to do with him any more than I want to eat canned salmon.
    Aleister Crowley (1875–1947)