Modifying Code

Some articles on modifying code, code:

Usage - Interaction of Cache and Self-modifying Code
... 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 ...
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 ... 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 ...

Famous quotes containing the words code and/or modifying:

    Hollywood keeps before its child audiences a string of glorified young heroes, everyone of whom is an unhesitating and violent Anarchist. His one answer to everything that annoys him or disparages his country or his parents or his young lady or his personal code of manly conduct is to give the offender a “sock” in the jaw.... My observation leads me to believe that it is not the virtuous people who are good at socking jaws.
    George Bernard Shaw (1856–1950)

    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)