Self-modifying code: Difference between revisions

Content deleted Content added
Operating systems: If you're distinguishing between 32-bit and 64-bit x86, you should distinguish between 32-bit and 64-bit ARM as well.
K1767 (talk | contribs)
Fix a grammar error.
Line 8:
Self-modifying code can involve overwriting existing instructions or generating new code at run time and transferring control to that code.
 
Self-modification can be used as an alternative to the method of "flag setting" and conditional program branching, used primarily to reduce the number of times a condition needs to be tested.
 
The method is frequently used for conditionally invoking [[test/debugging]] code without requiring additional [[computational overhead]] for every [[input/output]] cycle.