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 best political economy is the care and culture of men; for, in these crises, all are ruined except such as are proper individuals, capable of thought, and of new choice and the application of their talent to new labor.
    Ralph Waldo Emerson (1803–1882)

    Like other high subjects, the Law gives no ground to common sense.
    Mason Cooley (b. 1927)

    Those who profess contempt for men, and put them on a level with beasts, yet wish to be admired and believed by men, and contradict themselves by their own feelings—their nature, which is stronger than all, convincing them of the greatness of man more forcibly than reason convinces them of his baseness.
    Blaise Pascal (1623–1662)

    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)