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:

    “The main object of a revolution is the liberation of man ... not the interpretation and application of some transcendental ideology.”
    —Jean Genet (1910–1986)

    “But hospitality must be for service, and not for show, or it pulls down the host. The brave soul rates itself too high to value itself by the splendor of its table and draperies. It gives what it hath, and all it hath, but its own majesty can lend a better grace to bannocks and fair water than belong to city feasts.”
    —Ralph Waldo Emerson (1803–1882)

    “Ambivalence reaches the level of schizophrenia in our treatment of violence among the young. Parents do not encourage violence, but neither do they take up arms against the industries which encourage it. Parents hide their eyes from the books and comics, slasher films, videos and lyrics which form the texture of an adolescent culture. While all successful societies have inhibited instinct, ours encourages it. Or at least we profess ourselves powerless to interfere with it.”
    —C. John Sommerville (20th century)

    “No doubt, to a man of sense, travel offers advantages. As many languages as he has, as many friends, as many arts and trades, so many times is he a man. A foreign country is a point of comparison, wherefrom to judge his own.”
    —Ralph Waldo Emerson (1803–1882)