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:
“Five oclock 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] (18321898)
“As a thinker and planner, the ant is the equal of any savage race of men; as a self-educated specialist in several arts, she is the superior of any savage race of men; and in one or two high mental qualities she is above the reach of any man, savage or civilized.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)
“When science, art, literature, and philosophy are simply the manifestation of personality, they are on a level where glorious and dazzling achievements are possible, which can make a mans name live for thousands of years. But above this level, far above, separated by an abyss, is the level where the highest things are achieved. These things are essentially anonymous.”
—Simone Weil (19091943)
“I am always sorry when any language is lost, because languages are the pedigree of nations.”
—Samuel Johnson (17091784)