Computer

Self Modifying Code

Self Modifying Code

This article talks about Self Modifying Code, which is a piece of software which achieves its goal by rewriting itself as it goes along. It is executing – usually to reduce the instruction path length and improve performance or simply to reduce otherwise repetitively similar code, thus simplifying maintenance. It is frequently used for conditionally invoking test/debugging code without requiring additional computational overhead for every input/output cycle.