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:

    Science and technology multiply around us. To an increasing extent they dictate the languages in which we speak and think. Either we use those languages, or we remain mute.
    —J.G. (James Graham)

    The man who loves other countries as much as his own stands on a level with the man who loves other women as much as he loves his own wife.
    Theodore Roosevelt (1858–1919)

    There are very few things impossible in themselves; and we do not want means to conquer difficulties so much as application and resolution in the use of means.
    François, Duc De La Rochefoucauld (1613–1680)

    No man rises so high as he knows not whither he goes.
    Oliver Cromwell (1599–1658)