Self-modifying code: Difference between revisions

Content deleted Content added
Undid revision 1115990527 by 2001:D08:1814:BAB3:4080:8D27:BBE:61FB (talk) - rvv
Line 183:
Self-modifying code conflicts with authentication of the code and may require exceptions to policies requiring that all code running on a system be signed.
 
Modified code must be stored separately from its original form, conflicting with memory management solutions that normally discard the code in ramRAM and reload it from the executable file as needed.
 
On modern processors with an [[instruction pipeline]], code that modifies itself frequently may run more slowly, if it modifies instructions that the processor has already read from memory into the pipeline. On some such processors, the only way to ensure that the modified instructions are executed correctly is to flush the pipeline and reread many instructions.