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 application, high, level and/or languages:

    I think that a young state, like a young virgin, should modestly stay at home, and wait the application of suitors for an alliance with her; and not run about offering her amity to all the world; and hazarding their refusal.... Our virgin is a jolly one; and tho at present not very rich, will in time be a great fortune, and where she has a favorable predisposition, it seems to me well worth cultivating.
    Benjamin Franklin (1706–1790)

    All women, from the countess to the cook-maid, are put into high good humor with themselves when a man is taken with them at first sight. And be they ever so plain, they will find twenty good reasons to defend the judgment of such a man.
    Samuel Richardson (1689–1761)

    On a level plain, simple mounds look like hills; and the insipid flatness of our present bourgeoisie is to be measured by the altitude of its “great intellects.”
    Karl Marx (1818–1883)

    I am always sorry when any language is lost, because languages are the pedigree of nations.
    Samuel Johnson (1709–1784)