Self-modifying Code - Application in Low and High Level Languages

Application in Low and High Level Languages

Self-modification can be accomplished in a variety of ways depending upon the programming language and its support for pointers and/or access to dynamic compiler or interpreter 'engines':-

  • overlay of existing instructions (or parts of instructions such as opcode, register, flags or address) or
  • direct creation of whole instructions or sequences of instructions in memory
  • creating or modification of source code statements followed by a 'mini compile' or a dynamic interpretation (see eval statement)
  • creating an entire program dynamically and then executing it

Read more about this topic:  Self-modifying Code

Famous quotes containing the words languages, level, application and/or high:

    Wealth is so much the greatest good that Fortune has to bestow that in the Latin and English languages it has usurped her name.
    William Lamb Melbourne, 2nd Viscount (1779–1848)

    There is only one honest impulse at the bottom of Puritanism, and that is the impulse to punish the man with a superior capacity for happiness—to bring him down to the miserable level of “good” men i.e., of stupid, cowardly and chronically unhappy men.
    —H.L. (Henry Lewis)

    “Five o’clock tea” is a phrase our “rude forefathers,” even of the last generation, would scarcely have understood, so completely is it a thing of to-day; and yet, so rapid is the March of the Mind, it has already risen into a national institution, and rivals, in its universal application to all ranks and ages, and as a specific for “all the ills that flesh is heir to,” the glorious Magna Charta.
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)

    Someday soon, we hope that all middle and high school will have required courses in child rearing for girls and boys to help prepare them for one of the most important and rewarding tasks of their adulthood: being a parent. Most of us become parents in our lifetime and it is not acceptable for young people to be steeped in ignorance or questionable folklore when they begin their critical journey as mothers and fathers.
    James P. Comer (20th century)